lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great David Favro once stated:
>
> I sometimes superstitiously think that there may be some "advantage" in 
> creating a function that has no external references rather than one which 
> requires separate closures, but I honestly have no idea if this is true.

  I can think of two advantages:

	1) it's easier to serialize such a function, as it relies on no
	   external data.
	2) it's easier to test such a function as it relies on no external
	   data.

  -spc