From ggrothend|eck @end|ng |rom gm@||@com  Wed Dec  9 17:25:08 2020
From: ggrothend|eck @end|ng |rom gm@||@com (Gabor Grothendieck)
Date: Wed, 9 Dec 2020 11:25:08 -0500
Subject: [Rd] [External] Re: New pipe operator
In-Reply-To: <1e755fbb-f18f-227e-3477-6467fc255cbf@gmail.com>
References: <e55c2093-0bb5-5f9b-5521-0ca8bdf35953@gmail.com>
 <CALyqOb8c1hHOSaMV+fqXTwpeOsP--KJ_t-oeqMYYafVXeNpqZg@mail.gmail.com>
 <7586e034-e287-0970-6480-f82d747b5445@gmail.com>
 <CADfFDC7bT58_+52uvmpHuMMQRNbbmqV3_7t_fc4sgJ_Esw=xag@mail.gmail.com>
 <CAJmOi+PO_8XDC23=rT=pQ76ENL=gx2V-41ax2fHSVs87xURcEA@mail.gmail.com>
 <alpine.DEB.2.21.2012051203250.3003@luke-Latitude-7480>
 <CAOO9MKU7LD9JkX3XK3NpqzzpiTirvRxdqJBbX0D=W3ik+Fw0bw@mail.gmail.com>
 <1e755fbb-f18f-227e-3477-6467fc255cbf@gmail.com>
Message-ID: <CAP01uRnVnPws==rAAvumKeV0HMqMA3SRWvdyvTA6MXohbLuCXQ@mail.gmail.com>

On Wed, Dec 9, 2020 at 10:08 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>
> You might be interested in this blog post by Michael Barrowman:
>
> https://michaelbarrowman.co.uk/post/the-new-base-pipe/
>
> He does some timing comparisons, and the current R-devel implementations
> of |> and \() do quite well.

It does bring out that the requirement of using functions to get around the
lack of placeholders is not free but exacts a small penalty in
terms of performance (in addition to verbosity).

The bizarro pipe supports placeholders and so doesn't require functions
as a workaround and thus would presumably be even faster.  It is also
perfectly consistent with the rest of R and requires no new syntax.
You have to explicitly add a dot as the first argument but this seems a better
compromise to me than those involved with |> .



[Rd] [External] Re: New pipe operator
Gabor Grothendieck