4 ms·
Two points: * Erlang, nor Elixir, has currying. And they can't define their own infix identifiers/operators. This severely limits the way the language works, a
by jlouis 13y ago
Two points:
* Erlang, nor Elixir, has currying. And they can't define their own infix identifiers/operators. This severely limits the way the language works, and you need built in support.
* the |> notion is not even a higher-order combinator in Elixir. It is a special-case built-in you cannot redefine.
I agree with you that this is a bad design decision if you are to evolve the Erlang language :P
- arianvanp 13y agoYou're probably the only one who got my point. That's not because others were stupid, but because of my horrible formulation.
- jeremyjh 13y agoElixir does have currying/partial application. I can say: plus_one = &1 + 1 Enum.map [1,2,3], plus_one
- jerf 13y agoPartial application and currying are not the same thing. (That's not a value judgment, they're just different things.) That's partial application.