lua-users home
lua-l archive

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

In message <>
you wrote:

> As someone has put it, writing introductory tutorials about monads has
> become a burgeoning cottage industry. But is there one using Lua for
> the implementation of the examples? A quick Google search turned out
> nothing.

Monads are hard to express without a type system with type variables
and type constructors. However, there is nothing to stop one
framing an algorithm in a typed language and then stripping out
the type information for translation to an untyped language, say
Scheme or Lua. It is just that the results will need a bit of
annotation if they are to be understood.

Gavin Wraith (
Home page: