On Mon, Jul 16, 2012 at 3:42 PM, Pierre Joye <pierre....@gmail.com> wrote:

> 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.
>

except in those programming languages, where declaring attributes as final
does the same thing.


>
> Read only properties can be implemented by doing something using the
> nice getter/setter RFC
> (https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented).
>
>
thats true, maybe we should drop this thread until that RFC gets voted on.

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu

Reply via email to