lua-users home
lua-l archive

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

Hi Gavin,

> One more snippet about syntax: RiscLua uses "\" as an
> abbreviation for "function" and "=>" as an abbreviation
> for "return". This gives the potential for a snappier
> Haskell-like syntax, e.g.
> curry = \(f)=>\(x)=>\(y)=>f(x,y) end end end
> Yes, I know it is out of the Pascal-style tradition of
> using words, but I find it very readable. It is an extremely
> simple patch to llex.c.

I've been craving for that for years and I didn't know it.
Can you post the patch to llex.c to the list?