Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103809 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62609 invoked from network); 23 Jan 2019 20:52:40 -0000 Received: from unknown (HELO mail-it1-f172.google.com) (209.85.166.172) by pb1.pair.com with SMTP; 23 Jan 2019 20:52:40 -0000 Received: by mail-it1-f172.google.com with SMTP id g85so330787ita.3 for ; Wed, 23 Jan 2019 09:30:36 -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; bh=5BaxjjRmlr9h3Hz5IJcJ3WDV3MzQKHc4a43bLY/ApS4=; b=fhU5uGuvmsIyN42mu5PppT5LgeIEDZRTPsSOcdx7teo0MtelW4xfhjT9KS+hylNBDT dX+xkguZk8ET+PlXHFKfHKd8gmBYyRrbYkBAL79nEXLbnW7Rkfa1pRJKZXfFTK1IDef8 foh3V+fzlPzoQRcHHtq00WPLkjhxJ2kNQV4lsPoan2wqzWV1q3BrULmaWYUY3U7457DS Wv+A7Od1HwwYQECyuADB3qNWRtNMJWkQuJM2Bt8WP940vkn47LFBb+fYl/C34iXDTCQV SfexXtklUsx4g4T1Bgy3jdV9KU4a5W2izTJ9ibJMQZXMPdG0INYUd0gePuC7HNSpGrzt xeYw== 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; bh=5BaxjjRmlr9h3Hz5IJcJ3WDV3MzQKHc4a43bLY/ApS4=; b=lIDl+wP/T/YOU2LQdYitxseM56+PMQ1LssUZ9Ga5GRA5ra04sJ/Z1WlWenRH3jE3ZI 19Qe3GpWgyuvHzctyYUOHp00TI9WjU3RCCANpVyAioNQ/XxBh+Wj0McvvSQbfO+h4ztt AnSxVq32xhcyaRo5IctxOVnbSq3b8FDKzfSgqLxMLwxUbZOaQz2iFp5UOp86JlOkNgHl ClCj2xQIiS35Wu9iqJn92l9Q7h8g50D4iPmTF0jbibtc7t6nPgzysUq/qslqneqFSOsM oDwVcboziDGEFywS6qAkEPf3PIPo49wPzMLi1nCLGNE0w3xQI69GKpdNq0ZTfkfhCSPH nz5A== X-Gm-Message-State: AJcUukc5QHahuejSHVkgI5hRDdkOy3bfgW4LZAEnU9ECJsd2eCNgmyMm +fJZCM/m1UF79l1i22BjwUAb//VTGA/F7MmC6s9xxA== X-Google-Smtp-Source: ALg8bN5QlfXXgkf/IFRk5zF4fZT7uYHyc7J45ozDwnu25Zvy2nnLEwbJ0NLmjR2mAQm9AEwOCePELbaEF+tOibAlcWw= X-Received: by 2002:a24:dd8d:: with SMTP id t135mr2066702itf.84.1548264635872; Wed, 23 Jan 2019 09:30:35 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 23 Jan 2019 17:30:24 +0000 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a3bfec0580237327" Subject: Re: [PHP-DEV] Deprecation ideas for PHP 8 From: rowan.collins@gmail.com (Rowan Collins) --000000000000a3bfec0580237327 Content-Type: text/plain; charset="UTF-8" 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. Regards, -- Rowan Collins [IMSoP] --000000000000a3bfec0580237327--