Re: RFC Proposal
| From: | Leigh | Date: | Tue, 17 Feb 2015 19:25:22 +0000 |
| Subject: | Re: RFC Proposal | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83003@lists.php.net to get a copy of this message | ||
On 17 February 2015 at 17:35, Tim Bezhashvyly <tim.bezhashvyly@gmail.com> wrote:
> Dear PHP internals,
>
> this is my first RFC proposal and I am not sure if in this email is supposed to contain all RFC
> details or just a brief idea .. which is to drop PHP constants in favour of “final" immutable
> variables.
I think we need some more details.
Assuming since you mention "final" that your intent is to allow
T_FINAL for class property definitions?
Class constants have the ability to be referenced without
instantiating the class as an object. What are the benefits of
immutable properties over class constants? You certainly wont be able
to _drop_ class constants as they are so widely used.