[erlang-questions] Pipe Operator in Erlang?
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.
Founder and Director of R&D
On Thu, Jul 9, 2015 at 5:24 PM, Volkert <volkert@REDACTED>
> Dear all,
> I really love the Pipe Operator |> in Elixir and F#.
> Are there any plans to have this in Erlang?
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions