lua-users home
lua-l archive

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


We might as well go for the traditional lambda notation :-)
	\x,y,z.x+y*z

With mandatory parentheses, this is amenable to token filtering...
	\x,y,z.(x+y*z)

	I don't think these forms are easier to read than the current:

function (x, y, z) return x + y * z end

	Although shorter, I don't think it is worth adding this notation.
		Tomás