lua-users home
lua-l archive

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



--- On Sun, 3/14/10, Tony Finch <dot@dotat.at> wrote:

> From: Tony Finch <dot@dotat.at>
> Subject: Re: Monads in Lua
> To: "Lua list" <lua@bazar2.conectiva.com.br>
> 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
> combinators
> palatable.
> 
> Tony.
> -- 

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.