[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntactic sugar for function parameters
- From: "Eduardo Ochs" <eduardoochs@...>
- Date: Wed, 7 Feb 2007 03:12:26 -0200
Speaking of syntax for lambdas: in RiscLua a backslash is a synonym
for "function" and "=>" is a synonym for "return". See:
http://www.wra1th.plus.com/lua/book/rb04.html
The patch that implements that is just what's contained in the two
"#ifdef GCW_SUGAR" blocks in the file "c/llex" of RiscLua's sources
(<http://www.wra1th.plus.com/lua/zip/Luasrc.zip>); this "c/llex"
corresponds to the file "src/llex.c" in the standard Lua sources.
Cheers,
Eduardo Ochs
eduardoochs@gmail.com
http://angg.twu.net/