Re: [RFC] Deprecate and remove case-insensitive constants
| From: | Stanislav Malyshev | Date: | Wed, 04 Jul 2018 17:36:39 +0000 |
| Subject: | Re: [RFC] Deprecate and remove case-insensitive constants | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102584@lists.php.net to get a copy of this message | ||
Hi!
> So basically the practical BC impact of making them reserved keywords
> would only be a) cannot be used via constant() anymore and b) can't
> declare global functions with these names.
I think b) is completely fine (I don't think anybody needs a function
named "true" - would be very confusing anyway) and if a) proves a
problem, I still think special-casing may be a good solution.
So I'd go with this as the RFC proposal.
--
Stas Malyshev
smalyshev@gmail.com