[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: bitwise ops and opcodes
- From: Eduardo Ochs <eduardoochs@...>
- Date: Fri, 10 Feb 2006 12:47:25 -0300
> 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?