Re: [PHP-DEV] First-class callable partial application

2023-03-13 Thread Larry Garfield
On Mon, Mar 13, 2023, at 3:36 PM, Rowan Tommins wrote: > On 13 March 2023 18:44:48 GMT, Robert Landers > wrote: >>My approach was more of an iterative one. >> >>1. Get left-right done so that >> >>$x = something($left, $right, ...); >> >>would be allowed, but not >> >>$x = something($left, ..., $

Re: [PHP-DEV] First-class callable partial application

2023-03-13 Thread Rowan Tommins
On 13 March 2023 18:44:48 GMT, Robert Landers wrote: >My approach was more of an iterative one. > >1. Get left-right done so that > >$x = something($left, $right, ...); > >would be allowed, but not > >$x = something($left, ..., $right); > >This would bring some immediate benefits, as initially pro

Re: [PHP-DEV] First-class callable partial application

2023-03-13 Thread Robert Landers
On Mon, Mar 13, 2023 at 12:28 PM Rowan Tommins wrote: > > Hi all, > > On Sat, 11 Mar 2023 at 22:48, Robert Landers > wrote: > > > My "syntax sugar" implementation was that this: > > > > return $this->cache->get($command->getPhone(), $this->storeOtp($command, > > ...)); > > > > gets turned into th

[PHP-DEV] Re: [RFC] [Vote] Typed class constants

2023-03-13 Thread Máté Kocsis
Hi Everyone, The vote for the "Typed Class Constants" RFC is closed with the following result: The proposal was accepted with 24 yes and 0 no votes (100%). Thanks to everyone who participated in the discussion or in the vote. Regards, Máté Kocsis

Re: [PHP-DEV] First-class callable partial application

2023-03-13 Thread Rowan Tommins
Hi all, On Sat, 11 Mar 2023 at 22:48, Robert Landers wrote: > My "syntax sugar" implementation was that this: > > return $this->cache->get($command->getPhone(), $this->storeOtp($command, > ...)); > > gets turned into this: > > return fn(...$x) => $this-cache->get($command->getPhone(), > $this->s