lua-users home
lua-l archive

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


> Btw, would it be cool with syntactic sugar for "application".
> Something like apply@fun(a1, a2, ...) that just gets expanded to
> apply(fun, a1, a2, ...).

You could set __add  methametods for functions and be able to write
	apply/fun(a1, a2, ...)
though you'd probably need to add parentheses:
	(apply+fun)(a1, a2, ...)