[erlang-questions] will Erlang ever have currying?

Vlad Dumitrescu vladdu55@REDACTED
Fri Sep 8 14:15:35 CEST 2006


On 9/7/06, Vlad Dumitrescu <vladdu55@REDACTED> wrote:
>    some_fun(X, _, 3, _)
>
> would be syntactic sugar for
>
>    fun(XX, YY) -> some_fun(X, XX, 3, YY) end

If anyone really wants to use this today, please go to
http://forum.trapexit.org/viewtopic.php?p=21183, where I submitted a
parse_transform that will let you use the above right away.

(It has a funny gensym() implementation, so I'd not use it "as is" in
a production environment)

regards,
Vlad



More information about the erlang-questions mailing list