Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91429 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69757 invoked from network); 26 Feb 2016 09:32:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2016 09:32:56 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:6584] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/21-55238-7CB10D65 for ; Fri, 26 Feb 2016 04:32:55 -0500 Message-ID: <9F.21.55238.7CB10D65@pb1.pair.com> To: internals@lists.php.net References: <56C77575.4090906@fleshgrinder.com> <56C77FC8.1070500@gmail.com> <56C78496.9020804@fleshgrinder.com> <56CB6BA7.8060500@gmail.com> <56CDEB49.5040006@fleshgrinder.com> <74.A1.29886.2C8CEC65@pb1.pair.com> <56CF439F.2040506@fleshgrinder.com> In-Reply-To: <56CF439F.2040506@fleshgrinder.com> Date: Fri, 26 Feb 2016 09:32:47 -0000 Lines: 6 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:56CF439F.2040506@fleshgrinder.com... > >On 2/25/2016 10:26 AM, Tony Marston wrote: >>> Science shows that it is harmful, let's clean it up! >> >> Your "proof" is not scientific, it is just personal opinion. There is no >> evidence that use of the "var" keyword is harmful in any way. > >I think the diverged from talking about the "var" keyword in particular >towards duplication in general a long time ago. However, I still think >that DRY is empirically proven. > >> Where is your proof? You say "not used by a major part of the community" >> which means that it is still being used by a minor part, but exactly how >> "minor"? I don't see why I should be forced to make a totally >> unnecessary change to vast numbers of my scripts just to fall in line >> with your personal opinions. > >It is true that I did not provide this proof because Colin O'Dell did >claim this fact in the very initial message of this thread and I believe >him. So just because someone else states an opinion you are prepared to convert this to a "fact"? >> There is no reason to remove it from ANY version of PHP. It does no >> harm, it would take effort to take it out and amend the documentation, >> but for what benefit? > >I stick to the main reason I gave, DRY. Duplication needs to be managed >and removing it removes the maintenance burden. What maintenance burden? How much time is taken up by the language developers in maintaining the code that deals with the "var" keyword? How many bugs have been reported on this word since PHP was released? >> Change for change's sake is never a good idea. I have been developing in >> several languages for 40 years, and I can tell you point blank that >> while programmers expect new features to be added they do NOT expect old >> features to disappear. Once a piece of code has been written and has >> proved to work as designed it is expected to work with all future >> versions. The only exception to this is to plug holes in security. This >> is called "forwards compatibility", and was a major selling point of all >> my previous languages. If developers fear that they will have to rewrite >> huge swathes of code each time a new version is released they will >> quickly give up and move to a "professional" language which offers long >> term stability. > >I did not say that we should change for change's sake. I only stated >that trying hard to prevent change by all means is wrong. You are contradicting yourself. On the one hand you are saying that change for change's sake is wrong, and on the other hand you are saying that we should not block change for any reason. >Again, this >diverged away from the "var" keyword alone a long time ago and was more >a general statement. > >TL;DR Thanks for yet another aggressive/provocative email, I stick to my >+1. However, you all have valid points to keep it. > -- Tony Marston