A style question

Richard O'Keefe <>
Fri Feb 12 05:34:52 CET 2010


I've been looking at some Erlang code that's full of stuff like

	F = fun() -> ...
	mnesia:transaction(F)

My preferred style for this would be

	mnesia:transaction(fun () ->
	    ....
	end)

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?




More information about the erlang-questions mailing list