lua-users home
lua-l archive

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


steve donovan <steve.j.donovan@gmail.com> writes:

> PS the more I play with things like |x| x*(x-1), I wish that this
> syntax was supported in vanilla Lua. A very convenient bit of
> syntactical sugar if you are fond of the functional style.

function(x) return x*(x-1) end

is terse enough not to pine for shortcuts looking like line noise.

-- 
David Kastrup