Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-11 Thread Joe Watkins
There's a couple of typos in the RFC, which Larry will fix when he has time. There was also a typo in patch, and a fault in patch. All fixed. pending tests, 3v4l won't update until tomorrow. Cheers Joe On Fri, 11 Jun 2021 at 13:02, Guilliam Xavier wrote: > Sorry, me again :s I have tested th

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-11 Thread Guilliam Xavier
Sorry, me again :s I have tested the examples from https://wiki.php.net/rfc/partial_function_application on https://3v4l.org/#focus=rfc.partials and several of them currently give an error: - Ex 10: on the line `$c = stuff(?, ?, f: 3.5, ..., p: $point);` => Fatal error: Named arguments must come

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-10 Thread Jordi Boggiano
On 07/06/2021 21:50, Björn Larsson wrote: Den 2021-06-02 kl. 22:16, skrev Mike Schinkel: My only comment/request/suggestion is to consider Mark Randall's suggestion to use `...?` instead, for the reasons he mentioned in his email to the list: https://externals.io/message/114157#114666

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-10 Thread Guilliam Xavier
On Thu, Jun 10, 2021 at 7:32 PM Guilliam Xavier wrote: > > Since `$null?->whatever(1, 'a')` currently always returns null without > error, shouldn't `$null?->whatever(?, 'a')` return a closure (with a > signature built from the placeholders only) that will return null when > called (i.e. equival

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-10 Thread Dan Ackroyd
On Thu, 10 Jun 2021 at 18:32, Guilliam Xavier wrote: > Since `$null?->whatever(1, 'a')` currently always > returns null without error, shouldn't `$null?->whatever(?, 'a')` return a > closure (with a signature built from the placeholders only) that will > return null when called (i.e. equivalent t

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-10 Thread Guilliam Xavier
On Thu, Jun 10, 2021 at 4:34 PM Larry Garfield wrote: > On Thu, Jun 10, 2021, at 3:17 AM, Guilliam Xavier wrote: > > On Wed, Jun 2, 2021 at 7:47 PM Larry Garfield > > wrote: > > > > > https://wiki.php.net/rfc/partial_function_application > > > > for `$null === null`, is `$c = $null->bar(?);` / `

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-10 Thread Larry Garfield
On Thu, Jun 10, 2021, at 3:17 AM, Guilliam Xavier wrote: > On Wed, Jun 2, 2021 at 7:47 PM Larry Garfield > wrote: > > > Hi folks. After much off-list discussion, iteration, and consideration, > > we have a new draft of PFA ready for review. > > > > The URL is the same: > > > > https://wiki.php.n

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-10 Thread Guilliam Xavier
On Wed, Jun 2, 2021 at 7:47 PM Larry Garfield wrote: > Hi folks. After much off-list discussion, iteration, and consideration, > we have a new draft of PFA ready for review. > > The URL is the same: > > https://wiki.php.net/rfc/partial_function_application > Hi, thanks all for the reworks! I j

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-07 Thread Björn Larsson
Den 2021-06-02 kl. 22:16, skrev Mike Schinkel: On Jun 2, 2021, at 1:45 PM, Larry Garfield wrote: Hi folks. After much off-list discussion, iteration, and consideration, we have a new draft of PFA ready for review. The URL is the same: https://wiki.php.net/rfc/partial_function_application

Re: [PHP-DEV] [RFC] Partial Function Application, take 2

2021-06-02 Thread Mike Schinkel
> On Jun 2, 2021, at 1:45 PM, Larry Garfield wrote: > > Hi folks. After much off-list discussion, iteration, and consideration, we > have a new draft of PFA ready for review. > > The URL is the same: > > https://wiki.php.net/rfc/partial_function_application Really excellent work, all! > It'