[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: state of the Lua nation on resource cleanup
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 25 Jan 2009 22:05:47 -0200
> 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, ...)