lua-users home
lua-l archive

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


I just made submissions for these on http://lua-users.org/wiki/LuaPowerPatches.
Search for "Shorthand lambdas"

Basically, the construction 
   |arglist| _expression_
is shorthand for 
   function(arglist) return _expression_ end

I have an accompanying patch for luacheck (https://github.com/mpeterv/luacheck), if anybody needs that.