Hacker News new | ask | show | jobs
by jlouis 4764 days 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

2 comments

You're probably the only one who got my point. That's not because others were stupid, but because of my horrible formulation.
Elixir does have currying/partial application.

I can say:

plus_one = &1 + 1

Enum.map [1,2,3], plus_one

Partial application and currying are not the same thing. (That's not a value judgment, they're just different things.) That's partial application.