Re: [RFC] Partial Function Application, take 2

From: Date: Thu, 10 Jun 2021 08:17:37 +0000
Subject: Re: [RFC] Partial Function Application, take 2
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-114808@lists.php.net to get a copy of this message
On Wed, Jun 2, 2021 at 7:47 PM Larry Garfield <larry@garfieldtech.com>
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 just thought to something: does it
support nullsafe calls, e.g. $foo?->bar(?)? and if yes, what is the
signature of the Closure when $foo === null (and does it make a
difference if, inside a function, it was created as a local variable `$foo
= null; vs received as a typed parameter ?Foo $foo`)?

Related, for $null === null, is $c = $null->bar(?); / `$c =
$null::baz(?); an immediate error, or only later when calling $c($arg)`?

Regards,

-- 
Guilliam Xavier


Thread (11 messages)

« previous php.internals (#114808) next »