Re: [RFC] Pipe Operator, take 2

From: Date: Mon, 28 Jun 2021 20:04:10 +0000
Subject: Re: [RFC] Pipe Operator, take 2
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-115190@lists.php.net to get a copy of this message
On 28/06/2021 20:25, Olle Härstedt wrote:
Usage (ignoring the pesky undefined constant warnings ><):
Unfortunately, you can't ignore those warnings; not least because they're fatal errors in PHP 8, as they frankly should have been in PHP 3. You can use our current ugly callable syntax (strings and two-element arrays); you can tackle the complexity of unifying functions with constants, and methods with properties (as Levi explained in the other thread); or you can add a dedicated callable syntax, which the PFA proposal gets us with bells on. Regards, -- Rowan Tommins [IMSoP]

« previous php.internals (#115190) next »