lua-users home
lua-l archive

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


>foobar = function() frob() end

What stops you from writing simple assignment?
foobar = frob;

Imho its perfectly safe since functions are immutable.

Nothing in this case, but in non-example cases the body of the
function is longer than a single invocation.