[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Monads in Lua
- From: gary ng <garyng2000@...>
- Date: Sat, 13 Mar 2010 10:11:05 -0800 (PST)
--- On Sun, 3/14/10, Tony Finch <email@example.com> wrote:
> From: Tony Finch <firstname.lastname@example.org>
> Subject: Re: Monads in Lua
> To: "Lua list" <email@example.com>
> Date: Sunday, March 14, 2010, 1:49 AM
> On Sat, 13 Mar 2010, Fabien wrote:
> > Some reasons not to do it:
> Also, Lua lacks user-defined operators that can make monad
And there is no auto currying. I am working on monads in F# and it is just not as useful as it is in Haskell, mainly because of missing type class. Haskell seems to be the only main stream(?) language that monad truly works.
On the other hand, since lua is not a static type language, type class can be simulated via duck typing.