Re: Deprecation ideas for PHP 8

From: Date: Thu, 24 Jan 2019 00:25:43 +0000
Subject: Re: Deprecation ideas for PHP 8
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-103816@lists.php.net to get a copy of this message
On Wed, 23 Jan 2019 at 17:25, Girgias <george.banyard@gmail.com> 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? No, but only I'd much strongly prefer we have some syntax for defined 'short closures' ala Javascript: $values = [1, 2, 3]; $bar = array_map($x => $x + 1, $values); // $values === [2, 3, 4]; as those cover much more than the basic arithmetic operations, are nice and readable after you've used them a few times. cheers Dan Ack

« previous php.internals (#103816) next »