lua-users home
lua-l archive

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


lets take "#" and call it "preprocessor" :-)

On Sat, Nov 27, 2010 at 5:00 PM, Nilson <nilson.brazil@gmail.com> wrote:
> Hi,
>
> Why not create a kind of escape char that expands Lua's syntactical
> possibilities without "waste" too many characters?
>
> Assuming the backslash '\' been the escape character, we could write:
>
> \\x,y (x+y,x-y)
>    function(x,y) return (x+y,x-y) end
>
> \(x,y) print(x+y)
>    function(x,y) print(x+y) end
>
> \$+1
>    function (_1) return(_1+1) end
>
> \@
> \?
> \[
> \:
> \=
> \"
> \|
> \{
>
>
> Nilson
>
>