Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93134 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26783 invoked from network); 10 May 2016 02:53:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2016 02:53:17 -0000 X-Host-Fingerprint: 68.118.157.39 68-118-157-39.dhcp.mdsn.wi.charter.com Received: from [68.118.157.39] ([68.118.157.39:28608] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/61-11104-A1D41375 for ; Mon, 09 May 2016 22:53:14 -0400 Message-ID: <98.61.11104.A1D41375@pb1.pair.com> To: internals@lists.php.net References: <39071a01-a42c-0952-b3a8-b4769c79b56b@fleshgrinder.com> <0ac3be89-6fb4-610a-ef89-0928f264f96c@fleshgrinder.com> <71379db5-b7b8-78b3-ada5-eee34e6e22d6@fleshgrinder.com> <452ddb93-1f47-1d0f-4f24-bedbff506b27@gmail.com> Date: Mon, 9 May 2016 21:53:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 68.118.157.39 Subject: Re: [PHP-DEV] [RFC] Pipe Operator From: me@stephencoakley.com (Stephen Coakley) On 05/09/2016 11:41 AM, Sara Golemon wrote: > On Sun, May 8, 2016 at 11:45 PM, Stanislav Malyshev wrote: >> Neither of these is true for |>-$$ thing - it does not have any matches >> in any languages I can think of. >> > You lack imagination. Here's three to get you started: > > Elixir: http://elixir-lang.org/getting-started/enumerables-and-streams.html#the-pipe-operator > F#: https://msdn.microsoft.com/en-us/library/dd233229.aspx#Anchor_11 > Clojure: https://clojuredocs.org/clojure.core/-%3E > > And if they seem to obscure, how about this proposal for Javascript? > https://github.com/mindeavor/es-pipeline-operator I am really, truly sorry as this is a serious matter, but I kinda laughed a little bit at this burn... |> seems like a common symbol to use, but it admittedly does look a little strange. Hmm? Do I have a better proposal? Nope, not really. It's all just syntax in the end. -- Stephen