[erlang-questions] will Erlang ever have currying?

Vlad Dumitrescu vladdu55@REDACTED
Thu Sep 7 08:51:10 CEST 2006


Hi all,

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.

best regards,
Vlad



More information about the erlang-questions mailing list