Re: Property Accessors 1.2 for Final Review before Vote

From: Date: Thu, 03 Jan 2013 19:51:48 +0000
Subject: Re: Property Accessors 1.2 for Final Review before Vote
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 1/3/13 12:42 PM, Michael Wallner wrote:
On 3 January 2013 17:41, Clint Priest <[email protected]> wrote:
I like the idea of an init function, but that would have to wait for a further release I think, or delay this whole project a year.
We have constructors, shouldn't those be sufficient for that task?
My initial view was that property inits would encourage encapsulation of property setup logic, and make sure the property was ready before access in the constructor. Basically the same reasons we allow initializing regular properties now. But now I think it would embolden authors to make overly complex properties (like document.cookie) that should really be separate objects. Lets not do that. Steve Clay -- http://www.mrclay.org/

Thread (52 messages)

« previous php.internals (#64509) next »