Re: Class Constant Finalization
| From: | Niklas Keller | Date: | Wed, 25 Jan 2017 08:49:00 +0000 |
| Subject: | Re: Class Constant Finalization | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97956@lists.php.net to get a copy of this message | ||
2017-01-25 9:27 GMT+01:00 Wes <netmo.php@gmail.com>:
> They don't belong to a class only, but to a class and all its descendants.
> Ideally, descendants should not inherit constants (or anything static), but
> we can't change that now, so final could make sense here. Basically, they
> should work exactly like static fields, except that static fields can be
> re-assigned, while constants may not.
>
Well, we can deprecate them and remove it with PHP 8.