Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51970 invoked from network); 6 Mar 2016 08:59:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2016 08:59:50 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:24725] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/F2-29316-681FBD65 for ; Sun, 06 Mar 2016 03:59:50 -0500 Message-ID: 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> <86.68.21983.A2508D65@pb1.pair.com> <56D86C00.6000904@fleshgrinder.com> <12.FB.08749.AF759D65@pb1.pair.com> <56DAC26C.50304@fleshgrinder.com> <56DAE00F.2030203@lsces.co.uk> In-Reply-To: <56DAE00F.2030203@lsces.co.uk> Date: Sun, 6 Mar 2016 08:59:33 -0000 Lines: 7 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") "Lester Caine" wrote in message news:56DAE00F.2030203@lsces.co.uk... > >On 05/03/16 11:26, Fleshgrinder wrote: >> PHP being a mess is still one of the most quoted arguments against PHP! >> >>> > Only if it results in an actual and measurable improvement. Changes >>> > for >>> > "purity" or "consistency" do NOT fall into this category. > >> This is your believe and you know that many people disagrees with you on >> this; you just commented on the "[RFC] Deprecations for PHP 7.1" thread >> and we have much more of those RFCs and threads. > >There are a number of schools of thought, one will say 'You don't have >to update your perfectly functional code', just use a version of PHP >that it will run on, so over 40% of users are 'stuck' with Php5.2/3 >either because they don't have the support to change or the need to >change. Much of that code was written by people who are no longer >involved or interested and so unless others pick up the baton, there >will be little progress. I still run 5.2 on sites simply because it's >simply uneconomic to change them. Well said. Anybody who says "the majority of users don't use this feature, so that's a good enough reason to remove it" are ignoring the vast amount of code out there that will be affected. >Now moving code forward, handling every warning and simply keeping code >running from version to version, one hits the problem that sites that >are reliant on older versions of PHP can't easily be run with newer >versions. I've managed to build a way around that problem by now running >php-fpm/nginx which allows me to actually run the same code across >multiple versions of PHP. But one has to be very careful about just what >is changed at each step, so in my book, unless there is some good >security reason to stop something working then it should remain for BC >reasons. Hear hear! >Others are of the opinion that all current PHP code is a mess and my >reaction to that is ... well use a different language then! ... I echo that thought. Millions of developers chose to use PHP because it gets the job done, and once they have written coder that works they expect it to keep working with future versions of the language. This is called "longevity", and all organisations expect their investment in software to last for a significant amount of time. If their application has to be recoded every couple of years they will regard the language as being "unstable" and move on to something else. I have worked with two other languages for over a decade each, and as these languages were maintained by "professionals" they could guarantee that code written on day 1 of the first year would still be running ten years later. >expecting the vast majority of users to rename every function ( on of >the proposals for PHP7 ) or switch to a strictly typed method of working >is simply not going to happen, so I have no problem with people adding >new extensions which allow these different sytles of working as long as >the underlying procedural style of working is maintained in as BC a way >as possible, so things like 'var' and a number of the 7.1 deprecation >proposals simply destroy BC with little gain to a pure OO based version >of PHP anyway. All those who want to work with a 100% pure OO language should stop using PHP and switch to Java. Stop complaining about the quirks in PHP because there are quirks in every language. Stop trying to make the language perfect as your definition of "perfect" does not match that used by others who are more than satisfied with "good enough". -- Tony Marston