[erlang-questions] will Erlang ever have currying?
Thu Sep 7 08:51:10 CEST 2006
regarding currying, I just stumbled across a language(*) that
implements "currying on steroids" with a some syntactic sugar that
would look perfect for Erlang too:
some_fun(X, _, 3, _)
would be syntactic sugar for
fun(XX, YY) -> some_fun(X, XX, 3, YY) end
I think it looks cool, eliminates the overhead of regular Erlang
syntax and allows currying on selected arguments. I will include it in
my upcoming metaprogramming extension.
More information about the erlang-questions