Re: [RFC] Pipe Operator
| From: | Yasuo Ohgaki | Date: | Thu, 12 May 2016 11:48:45 +0000 |
| Subject: | Re: [RFC] Pipe Operator | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-93269@lists.php.net to get a copy of this message | ||
Hi Larry,
On Thu, May 12, 2016 at 8:19 AM, Larry Garfield <larry@garfieldtech.com> wrote:
> On Mon, May 9, 2016, at 10:21 PM, Stanislav Malyshev wrote:
>> Hi!
>>
>> > |> seems like a common symbol to use, but it admittedly does look a
>>
>> So, usage in one semi-obscure language (F#) and one completely obscure
>> one (Elixir) - Clojure doesn't use |> - and one proposal for Javascript
>> now qualifies for "common". And that counting the fact that neither of
>> them actually uses the worst part of proposed syntax - magic variable $$.
>> --
>> Stas Malyshev
>> smalyshev@gmail.com
>
> If the issue is $$ feels too Perl like, what is the alternative? Is
> there another way to chain methods cleanly?
$$ looks like Perl, I agree.
However, we will get used to it soon. Namespace separator "\" seemed
strange to me, but I was used to it after a while. It would be more
beneficial to users if we adopt the same symbol as Hack. IMO.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net