Re: [Vote] Pipe operator
On Tue, May 13, 2025, at 5:55 PM, Ilija Tovilo wrote:
> Hi Larry
>
> On Tue, May 13, 2025 at 3:58 AM Larry Garfield <[email protected]> wrote:
>>
>> I hereby open the vote on the Pipe operator RFC:
>>
>> https://wiki.php.net/rfc/pipe-operator-v3
>
> It looks like the example under "Rejected Features" is wrong.
>
> // With Elixir style
> $foo
> |> bar(...)
>
> should be
>
> $foo
> |> bar()
>
> Also a nit: The RFC says "There was discussion off-list of
> “auto-partialling” functions after a pipe", but this idea was since
> discussed on-list as well.
>
> Ilija
Hm, good catch. Normally you're not supposed to edit an RFC in voting, but as this is a typo
fix in a Rejected Features section (ie, it has zero impact on the thing being voted on), I think
it's probably OK to fix.
I'll give a day or so for someone to object that it still shouldn't be allowed, and if no
one does then I'll make those edits.
--Larry Garfield
Thread (8 messages)