In my opinion read-only variables are not the same as constants. You could do something as following:
final $foo = new Foo(); and that is definitely not the same as a constant. However, I guess this new feature would slow down the parsing process and therefore I am against it. -----Ursprüngliche Nachricht----- Von: amaury.bouch...@gmail.com [mailto:amaury.bouch...@gmail.com] Im Auftrag von Amaury Bouchard Gesendet: Dienstag, 28. Mai 2013 13:44 An: Sebastian Krebs Cc: Maciek Sokolewicz; Lars Strojny; Ferenc Kovacs; PHP Internals Betreff: Re: [PHP-DEV] supporting the final keyword for properties 2013/5/28 Sebastian Krebs <krebs....@gmail.com> > > And in your example you have to know, that you are "manipulating" a > variable :? > > Sure. But my example's goal was to show the idea of Lars. Using the "final" keyword on variables would allow to manipulate variables and "constant variables", without the need to know if it's a variable or a constant (obviously because they are all variables). Not my idea, I was just explaining. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php