[Rd] New pipe operator

Gabor Grothendieck ggrothend|eck @end|ng |rom gm@||@com
Mon Dec 7 14:22:11 CET 2020


On Mon, Dec 7, 2020 at 5:41 AM Duncan Murdoch <murdoch.duncan using gmail.com> wrote:
> I agree it's all about call expressions, but they aren't all being
> treated equally:
>
> x |> f(...)
>
> expands to f(x, ...), while
>
> x |> `function`(...)
>
> expands to `function`(...)(x).  This is an exception to the rule for
> other calls, but I think it's a justified one.

This admitted inconsistency is justified by what?  No argument has been
presented.  The justification seems to be implicitly driven by implementation
concerns at the expense of usability and language consistency.



More information about the R-devel mailing list