[eeps] New EEP draft: recursive funs
Raimo Niskanen
raimo+eeps@REDACTED
Mon May 30 15:26:27 CEST 2011
On Fri, May 27, 2011 at 07:55:34PM +1200, ok@REDACTED wrote:
> Erlang *functions* can have multiple clauses and multiple arguments
> and can be recursive.
> Erlang *funs* can have multiple clause and multiple arguments
> but cannot be recursive.
>
> We can fix that in a very natural way, which does not invalidate
> the foundations of Erlang memory management, and fortuitously
> makes hot loading safer in the presence of funs, even if you do
> not use recursive ones.
>
> This doesn't solve all known problems, and in particular,
> doesn't solve the problem of mutually recursive funs, but I
> don't expect a solution to that to arrive short of a radical
> redesign of the whole language (which Joe is thinking about,
> bless him).
>
Your EEP draft is now checked as:
EEP 37: Funs with names
http://www.erlang.org/eeps/eep-0037.html
http://github.com/erlang/eep/blob/master/eeps/eep-0037.md
Thank you for your contribution to the Erlang Enhancement Process.
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the eeps
mailing list