[erlang-questions] Pipe Operator in Erlang?

José Valim jose.valim@REDACTED
Thu Jul 9 19:13:26 CEST 2015


I agree with the general feelings of the thread. F# relies on currying.
Elixir relies on macros (it is actually closer to the thread operator found
in some lisps).

Also F# has most of its standard library expecting the "subject" as last
argument (due to currying). Elixir defaults to the first argument. Erlang,
for better or worse, has them mixed (see binary and lists modules).

For those reasons I don't think this feature makes much sense in Erlang. It
is also hard to have elegant currying when functions are identified by name
and arity. I believe Joxa is the only language in the Erlang VM with
currying but they dropped the fun name/arity bit (citation needed).

Language features are like a Jenga game, all the pieces need to fit
together neatly, otherwise you have a crumbling mess.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Thu, Jul 9, 2015 at 5:24 PM, Volkert <volkert@REDACTED>
wrote:

> Dear all,
>
> I really love the Pipe Operator |> in Elixir and F#.
>
> Are there any plans to have this in Erlang?
>
> Volkert
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150709/6409e113/attachment.htm>


More information about the erlang-questions mailing list