Re: Pipe Operator v2

From: Date: Thu, 19 Jan 2017 10:24:20 +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-97868@lists.php.net to get a copy of this message
On Mon, Jul 25, 2016 at 11: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:) I'm surprised someone noticed Japanese "~" char issue. We have "~" char issue, but it would not be problem for programmers. I guess you mentioned this issue. https://ja.wikipedia.org/wiki/%E6%B3%A2%E3%83%80%E3%83%83%E3%82%B7%E3%83%A5 http://qiita.com/kasei-san/items/3ce2249f0a1c1af1cbd2 They are written in Japanese. Please use google translate or similar. Wrongly configured keyboard could be another problem. We may ignore such environment. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#97868) next »