Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103812 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69540 invoked from network); 23 Jan 2019 21:07:41 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.15.19) by pb1.pair.com with SMTP; 23 Jan 2019 21:07:41 -0000 Received: from [192.168.2.138] ([91.8.162.93]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Meg8W-1gX2dc2x68-00OIhE; Wed, 23 Jan 2019 18:45:36 +0100 To: Rowan Collins , PHP Internals References: Message-ID: Date: Wed, 23 Jan 2019 18:45:38 +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: 8bit X-Provags-ID: V03:K1:5mbmMCYAvWEf7fRzYISQtet0psHUXbpv8cSil808irc2gdI+W8T 6gaBndGIRExiCcuh2dKkxPjBjYV7O/iFZcgjLvexZC3+3GIkjXq4sS9R4D+ZgCn/7/2jyHL tXUxq907ge9TsPWQcYvX/hNHoeIBVGYSDZzsCHkeigYPVWFJHhkSU5upNcHcJQ452+Q94Ro oXq3oTWyYARAESUzm3lOw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:FDd95br2Y8A=:ZRv13ESxVFNZ+CNs5x2Cmo 91SrrmmBYnLMIhrufKXnFdZSO1gDFqmoC8KfP9ENdixlLhMmUc5Hul/7CBzUtFtKTjD/KMrbY bwUgCIC7L9JWj6E3pjQs3brMrGbhBvnsiOpEGUhJXghmMQvPvX7Cp9FZyAB1oIqhfkWV21jm6 GbirMRTfsjV90KP2wZsQASassL629t8Xco3NdPSA9TDgOiDesvOTsPF2J9SCL+2MaCoRObqtq DQbO39hpW4mxv+RFquDK9YmwovSrsCkYp0k1FE1L2aeiJgTsFbIapiUDjjJeyVgh0pVsbMxVE 3uiJxmjL2ssnmId4fs1k4lrL9g1ykIq3zhNdeUqk7jFm5UZCkZnqU1FlbPQJtCJozGvvo5ZWr RtiAlKcllg8h1kmtmZihFyfAZogqkr94VpigjKmltDLk7m5vf+J3y8Jyd/p8Ks5/xZFaA3zCj 5BIserMcqYNNJyfL2kkBy5Cr0pOk3hNg+TOttRZG5BEumk8iphCCcPCjIBgvyaKTxuk+PNr9f C+ESHCtpmjAlXTIlp8y0oGJ57ApbMWLSm/mkbv+5t0Pe1wDv4x82kQ1qxGCAC19lCSGdQmrJE SeBjCo9U1Ud70aEvon/M51bH8ooQR373aHp54IgFfc6Rvo/kH3QVzLKK/+u8uPe2B35viQyDC FOPABl874kYZDqQ7yUdvCeSOTzsoJlcojGW632Y6glKiXEHbtT+tMMocac1Bafs9yvG8BXxtZ owIIYz20vkNnTnMSqZ81WxG2dqx+NexN16VZURptoq+V3Qi+thO4b7VbAIKy93ifH12g/rbos YlXKS6tiBSKqh6erQxhwLaoP4G7EQZrO7hrHH1lfrDjy+2jxWKfZYA1roi6Xzuo2RcbRpuFrn t5X+szHeSgnOlFZUeo6on9thBy2fC45Wc66ADZsNvs40TaY92WiN2PAWmz+o2bYE2p/UTeuKf BysXi+D/Few== Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: cmbecker69@gmx.de ("Christoph M. Becker") On 23.01.2019 at 18:30, Rowan Collins wrote: > On Wed, 23 Jan 2019 at 17:25, Girgias wrote: > >> I understand the rationale for functional programming, may I ask >> in your opinion should PHP have built-in functions for arithmetic >> operations so that it can be used in such a way without needing userland >> implementations? > > There was a proposal a while ago (Sara Golemon maybe? Or Andrea Faulds? > Seems like the kind of thing either of them might work on...) to add a > syntax for using any operator as a callable. I don't think it got beyond a > thought experiment, but it's an interesting concept, and would > theoretically remove the need for some of this duplicate functionality. See (which is still “under discussion”, by the way). -- Christoph M. Becker