Re: Pipe Operator v2
| From: | Björn Larsson | Date: | Mon, 25 Jul 2016 14:52:09 +0000 |
| Subject: | Re: Pipe Operator v2 | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94706@lists.php.net to get a copy of this message | ||
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