Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91477 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67044 invoked from network); 3 Mar 2016 09:34:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2016 09:34:35 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:2393] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/68-21983-A2508D65 for ; Thu, 03 Mar 2016 04:34:34 -0500 Message-ID: <86.68.21983.A2508D65@pb1.pair.com> To: internals@lists.php.net References: <1F.91.55238.41F10D65@pb1.pair.com> <56D42CD3.6020602@gmail.com> <56D57DF4.8000906@gmail.com> <56D5D2AD.6070805@gmail.com> <56D5DDA6.4080607@fleshgrinder.com> <40.73.36499.548B6D65@pb1.pair.com> <56D6BBD0.5010505@gmail.com> <56D73386.3000903@fleshgrinder.com> In-Reply-To: <56D73386.3000903@fleshgrinder.com> Date: Thu, 3 Mar 2016 09:34:20 -0000 Lines: 1 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 X-Posted-By: 80.177.120.119 Subject: Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal From: TonyMarston@hotmail.com ("Tony Marston") wrote in message news:56D73386.3000903@fleshgrinder.com... > >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. Only some people are confused. But that confusion goes away once they RTFM (Read The Friendly Manual). If you want to avoid such confusion over alias names then surely that would be an argument against introducing aliases in the first place. In this case the short array syntax would never have been introduced as the (only slightly longer) long array syntax had already existed since day #1. >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. > So if people are still using it then surely that is an argument AGAINST its removal. -- Tony Marston