[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: Lua should have arrow operators
- From: Coda Highland <chighland@...>
- Date: Mon, 3 Jul 2017 19:37:27 -0500
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