Re: [RFC Proposal] var keyword deprecation/removal
| From: | Fleshgrinder | Date: | Wed, 02 Mar 2016 18:40:06 +0000 |
| Subject: | Re: [RFC Proposal] var keyword deprecation/removal | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91476@lists.php.net to get a copy of this message | ||
On 3/2/2016 11:09 AM, Rowan Collins wrote:
> I think the point was that *the difference between* "var" and "public"
> was being abused, which wouldn't be possible if there were only one
> keyword.
>
> However, I agree that it's a very weak argument for removal (just as "I
> [ab]use 'var' to mean something different from 'public'" is a weak
> argument against removal).
>
> Regards,
It showcases what the studies about UI/UX found out about duplicated
behavior (or call it aliasing, multiple choices for the same thing, ...).
People are confused and we can and should avoid that.
The "var" keyword once emitted an E_STRICT but I guess it was turned off
again because too many people were complaining as they are now.
--
Richard "Fleshgrinder" Fussenegger
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc