Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103902 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70299 invoked from network); 31 Jan 2019 10:54:52 -0000 Received: from unknown (HELO mail-oi1-f177.google.com) (209.85.167.177) by pb1.pair.com with SMTP; 31 Jan 2019 10:54:52 -0000 Received: by mail-oi1-f177.google.com with SMTP id m6so1905745oig.11 for ; Wed, 30 Jan 2019 23:34:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MrPHobJ0D+KOIXOERbCoCXQIEIKCBeIUOSV+SoWld/U=; b=oRcRMPjcQ3b9G4nBFBIGF7eyRv+P5bdhNg5aNGS+wPE1KsDEc9ynZwdTTL+p0ZVgb3 hyBVdbO+OqL08leDtddXarzzAdRMegk39jMCVmv0EZxftk3enB1FpRkpyQ+3Hr2LnVNM DN6x6tZckbWyxBOrF9w5waJXX/Qi5t5yeTwfvktJME24MNeYoiNeLYO3IvOEjHJc1FOg jyI8GOE5lox9ToDtXnGbQ7nsFSe42zT0j/HlSjs8DHHw1CMSJXtl5xoY+byumvq9LLPo wK6hzGOqDYYHRr/QzUGMofHYdEO7BkBnnYXUHplCSev83Sc4o/bNYEISWKXs7LfAmRRV /Xcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MrPHobJ0D+KOIXOERbCoCXQIEIKCBeIUOSV+SoWld/U=; b=KX3BN0l3LhipQKHW7BWXLaQEwJC39Eo+f019Ea+p9cVLncmR6GTX1+lsdQ1IeXay4V TXkHGuzB4YzNG2v2z73iMItsYKGJMAXUxktVMtt0gXNb6EZPoXSNWD+QbTLBl/65UJen DVk9zlDK88neyQ1aWSlgiX1y9x/Lh87wZALPNVmH3fMZQgnknHhjDCkBeejd830xlby3 8Kz2TkOmh7ZWTGEEou0xDa3qeW2S8s1OY4DF1YrQBiP9pPi2mNatlod+ZLlhT8hf+j0t FiJU+P8J4Rhd1lW2E3WtjpDVBlxWlQKClkPQPpxFjwwi0lQK5F5JcYHrD8XZRY7+egE5 pzjg== X-Gm-Message-State: AJcUukfBRWAiEHeckyhtmxwE9lQduO5rAeIXCqiJ/7fjL8MF0u7XzcM3 AOKW4JmV5kTt925j+vdDOSrF0BAHzB721kGZ7zw= X-Google-Smtp-Source: AHgI3Ia6A2HabWF3qSsV7zKr/Wmfi2ggRCpmerTOK67WkqAkFUqu3XljIzPediOypoDsWEhiv+I/1VuzFldrVw7xO/A= X-Received: by 2002:aca:3fc6:: with SMTP id m189mr14929902oia.142.1548920080977; Wed, 30 Jan 2019 23:34:40 -0800 (PST) MIME-Version: 1.0 References: <0243D3A4-2C15-4B31-81A8-C2E5892913F9@koalephant.com> <2d8efb96-ed1f-28e4-e0fe-603a2d0f1962@gmail.com> In-Reply-To: Date: Thu, 31 Jan 2019 08:34:29 +0100 Message-ID: To: Rowan Collins Cc: Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: peterkokot@gmail.com (Peter Kokot) On Wed, 30 Jan 2019 at 20:51, Rowan Collins wrote: > > On 30/01/2019 17:28, Peter Kokot wrote: > > This now also means that PHP is making its inconsistency a fact > > > The inconsistency IS a fact, and has been for more than 20 years. This > isn't some new policy, banning something that used to be possible, it's > a summary of something that's been discussed over and over again, and > always reached the same conclusion. > > The unfortunate truth is that the only way to truly fix most of these > problems would be to create a completely new language, like Perl6; or at > least a complete rewrite, like Python 3. As those two examples show, the > result would be effort and community split between two forks, one that > runs all the millions of PHP applications already written, and one that > is theoretically nicer, but runs none of that old code. That just isn't > a price worth paying. Sorry, I didn't put my words correctly here. Not inconsistency. Inconsistency is a fact, yes. I've meant the incapability of doing something to fix this inconsistency. And it is becoming some sort of stubborn belief and less and less people want to fix it. The RFC: Consistent function names [1] shows the magnitude of this. I don't think every function listed there needs a change so it can be greatly reduced. But still this can be done in several years to 10 years or so (measuring over the thumb). Not that it is not possible to do this, but too many people promote this state as not possible to change. I didn't put too much effort to make a list of all the changes to an extend as is nicely done in the RFC but maybe enough would be renaming functions and alias them properly from major/minor release version to version and furthermore deprecate the aliases, so they match the pattern suggested for PHP vanilla functions [2]. Not to mention really good ideas from the past discussions with namespacing functions and similar approaches... But, yes... Without proper will or motivation from key people who could change this it will stay in the inconsistent state and we all accept it as is. Specially in discussions about a major release where BC could be done. [1] https://wiki.php.net/rfc/consistent_function_names [2] https://github.com/php/php-src/blob/master/CODING_STANDARDS -- Peter Kokot