[erlang-questions] A style question
Fri Feb 12 05:39:27 CET 2010
Only thing I can think of is that if the same fun is used in more than one
place in the function (or has potential to be) it's better to have the
label. Aside from that I've got nothing.
On 12 February 2010 12:34, Richard O'Keefe <> wrote:
> I've been looking at some Erlang code that's full of stuff like
> F = fun() -> ...
> My preferred style for this would be
> mnesia:transaction(fun () ->
> which I think a Smalltalk or Ruby programmer would also prefer.
> But is this just prejudice on my part, or is there a reason why
> inserting an opaque name like "F" is a good idea?
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
More information about the erlang-questions