hi, On Mon, Jul 16, 2012 at 2:25 PM, Ferenc Kovacs <tyr...@gmail.com> wrote:
> The recent http://www.mail-archive.com/internals@lists.php.net/msg59301.html > discussion > made me wonder why did we decide not supporting the final keywords for > properties as it would provide an easy way for read-only attributes (const > would be a better choice in performance wise, but then you can only set it > in your declaration where no dynamic expression is allowed.) Final and readonly are too totally different concepts. Read only properties can be implemented by doing something using the nice getter/setter RFC (https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented). Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php