Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103909 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31724 invoked from network); 31 Jan 2019 14:31:18 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.15.18) by pb1.pair.com with SMTP; 31 Jan 2019 14:31:18 -0000 Received: from [192.168.2.138] ([87.167.195.31]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MI4yc-1grurq3WRS-003uCQ; Thu, 31 Jan 2019 12:11:08 +0100 To: Peter Kokot , Rowan Collins Cc: Internals References: <0243D3A4-2C15-4B31-81A8-C2E5892913F9@koalephant.com> <2d8efb96-ed1f-28e4-e0fe-603a2d0f1962@gmail.com> Message-ID: <41751cdc-8d15-591d-fd3a-996e07fff453@gmx.de> Date: Thu, 31 Jan 2019 12:11:11 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:tQHmn2BbcrVsBrNHoYLZ1X+QpTR8V2wfVmVPaUUjhwqfSFN8Ere LLiMZrgD7jga+p+xk2gFzG4g6q9yKLo8kpKBpZ6xLWvgYgdi7/KRtst02xkir7w6ObyjsI0 ca2gZAOpF4kI0q/7DI2f0GAFf9y2ZsgtBwEyVGP7akNBpGxxV70Qa3eoLvd0aqQDWDntllR 4bMY9x++IQCXJ8YF9n1Xw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q+GVX1vY2eY=:Z5wCoHejsLQcVoWKUbeVgU f8oaM6OzonmAAG90ZcNqCJaSiz7QC+WUAOM7rhBNk6+VDK3ifY/xMZLMNHRQEbi76NYtx/V9t jhSfJ0eWLl1ilsHMlVFghH971tkiAUiHcpRB+4x2aSjQo46IHSW6v9+pwsK2ONJX6cAwytmlJ BsLknrwKxJEZCdx26fTOV18JhEDsowqwmMQF0+gPJHagYRsejjZs355LmAnrGDSGVhjuXFIbb /Y8SEzeez+G0wnmW5uUc7EheY1Rj/U96k22fMvNKa9Q82KFOubFpcBP2gr13syoQbuuGR74ea JXGZK4lTwNo/2iq/IZD++QILVKaADVAeejrdgIZI99J/of/3UeqZAa/lwV3CZylUXR0hsEGLj /riUY4zgtI4d8fT0FTDiCVlKY2ZE3AY+DtSKz3EjNK3kzkd38m3bvWee65CSm77T61G0xWSvY Iur4iRgmYOCaep+BAAwpxvJwkom4Sw6gMfYuhgMwVmkQU7coeCNN2iSasxNALyeK6apDK+GfJ 8+NL2blmRRW4NHZGGw3RI5ipSkQCEOmwIxjk5OuKqI10SI5v8ofdJlhUS+T6A/RO+5l9ALjVh 8ueUYutSNLQ/zcDfR4U3MhvutVATgajkwa2O2GJtZQSO1BQH/dAvKxjP3hUNg2ZFjHzbpBguh xyMY8q9tcaGnJ+ZeytU2FbikNMSYGfFcVbkKj+t6Cx4j4sc2C5yiJGmdVtGJ3+qbGBu64rAU5 Z1wj7pqG+Bn/nFZxLADWCHB5ifUjV6BRyn3LESokC5EOAAPvo+8Ojnfe6eURKbuHnKBSFJI4F YwpGthoXPmXny1boIKUB9eOz6QnkNzACstsK7iAj2HtINCeBqrHu9aRm4JCmcxiYngj6QwIkE jguUNIevldKsgZg9BOAB4lYvCloMaxS4R1zS7i3gciPsR5MuFxRp9wsa/Ss8+NgDtpW9UCezR 0bzp8HdlTjg== Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: cmbecker69@gmx.de ("Christoph M. Becker") On 31.01.2019 at 08:34, Peter Kokot wrote: > 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 In my opinion, there is no gain in renaming bcadd() to bc_add(), for instance. A namespaced variant BC\add() might be an improvement, but likely it should rather be BCNumber::plus() (also overloading the + operator). See also the closely related discussion regarding renaming the image functions: . -- Christoph M. Becker