lua-users home
lua-l archive

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


On Mon, Jul 3, 2017 at 6:31 PM, Charles Heywood <vandor2012@gmail.com> wrote:
> I personally feel that while it is nice, it'll lead to ambiguousness.
> Haskell does it nicely: functions with multiple arguments essentially
> "return" a new function, so `x y $ z 1` would be like z(1)(x(y))` (I think
> it was Haskell...). Because Lua has only one function call for multiple
> arguments, I feel it's a tad bit weird.

Yes, it's Haskell that implements multi-argument functions as a
composition of unary functions returning closures.

/s/ Adam