Re: Pipe Operator v2
| From: | Joe Watkins | Date: | Thu, 19 Jan 2017 05:55:45 +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-97864@lists.php.net to get a copy of this message | ||
Morning Sara,
This has generated some very decent discussion.
It seems like time to put this to a vote, could you maybe find some time to
do that please ?
Alternatively, if there are outstanding issues that are stopping this
going to a vote, could we know what they are, and maybe your plan to
resolve them ?
Cheers
Joe
On Mon, Jul 25, 2016 at 3:52 PM, Björn Larsson <bjorn.x.larsson@telia.com>
wrote:
> Den 2016-07-22 kl. 17:05, skrev David Rodrigues:
>
> It's possible to use the tilde ~ easyly on keyboards?
>> For on BR/ABNT2 is easy. So maybe use ~> as operator could be fine,
>> instead of the triangle |>, and linear sounds good too, like:
>> $string~>escape($$)~>dump($$);
>>
>> It's used currently on PHP for a bitwise operation (not), so I think
>> that the usage are not a problem in general.
>> Too will not have a conflict, because ~> no make any sense to PHP today.
>>
> There was an RFC proposing that operator for short closures, see:
> - https://wiki.php.net/rfc/short_closures
>
> Recall that the operator was a bit controversial due to
> e.g. japanese keyboard. Personally I liked the proposal
> and I think the "pipe" sign fit well into an pipe operator:)
>
> Regards //Björn Larsson
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>