Re: [RFC Proposal] var keyword deprecation/removal
| From: | Christian Schneider | Date: | Mon, 14 Mar 2016 13:03:31 +0000 |
| Subject: | Re: [RFC Proposal] var keyword deprecation/removal | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91656@lists.php.net to get a copy of this message | ||
Am 10.03.2016 um 16:44 schrieb Andrew Brown <browner12@gmail.com>:
> as @Arvids said, var is missing functionality that public has, so they are
> not exact aliases of each other. i think this is valid enough reason to
> remove it.
To me this is reason enough to keep it. If your codebase does not care about visibility (and yes,
I'm against forcing people to always use it) then I don't think it makes sense to enforce
the 'bigger' public keyword instead of var.
> even if it weren't the case, I would say let the language maintainers
> decide if this cleanup would be worth it to them and make their lives
> easier and their code more consistent, and userland developers (including
> myself) be damned in 5+ years with this minor inconvenience. I think 5
> years is plenty of lead time to make this fix.
How minor that BC break really is should be evaluated based on public PHP applications, e.g. a quick
glance at Wordpress showed some usage of var.
But if the majority of core people think that the benefit outweighs the cost then so be it.
- Chris