in reply to $foo->bar = 14;
One problem with the approach you set forth is that it doesn't survive subclassing.
Personally, I don't favor automatic creation of accessors (or mutators) at runtime. Development-time code generation can be good, but my experiences with delaying generation until runtime have almost always led to a debugging quagmire. I want accessors/mutators reflected directly in the source.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: $foo->bar = 14;
by shotgunefx (Parson) on Dec 29, 2002 at 21:58 UTC | |
|
Re: Re: $foo->bar = 14;
by Juerd (Abbot) on Dec 29, 2002 at 23:36 UTC | |
|
Re^2: $foo->bar = 14;
by adrianh (Chancellor) on Dec 30, 2002 at 09:31 UTC | |
by dws (Chancellor) on Dec 30, 2002 at 18:52 UTC | |
by adrianh (Chancellor) on Dec 30, 2002 at 20:53 UTC |