lua-users home
lua-l archive

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


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