Re: Pipe Operator v2
| From: | Rasmus Schultz | Date: | Tue, 24 Jan 2017 19:25:11 +0000 |
| Subject: | Re: Pipe Operator v2 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97946@lists.php.net to get a copy of this message | ||
Isn't
_ more generally used as a "discard" placeholder in most
languages?
At least in Swift, Go, Scala, Dart and C# (starting with v7) I think?
I don't recall having seen it mean "fill in the blank". In what languages?
On Fri, Jan 20, 2017 at 4:26 PM, Levi Morrison <levim@php.net> wrote:
> Oops, sorry for an email that just quotes others; mis-clicked send.
>
> > Last, a cosmetic suggestion : replace '$$' with '$<' (more explicit
> > as
> > 'input data', imo).
>
> If we aren't going to use $$ I'd like to use
> _ or __ which read
> similar to "fill in the blank" and has precedence in other languages.
>
> But at this stage I'd much rather focus on changing the general model
> to what I've proposed instead of what is outlined in the RFC. I care
> much more about the feature than the exact syntax for it.
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>