On 1/3/13 12:42 PM, Michael Wallner wrote:
On 3 January 2013 17:41, Clint Priest <cpri...@zerocue.com> 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/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to