[Date Prev][Date Next][Thread Prev][Thread Next]
- 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:
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.