[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight syntax: a dissident view
- From: Nilson <nilson.brazil@...>
- Date: Sat, 27 Nov 2010 14:00:18 -0200
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
- References:
- Re: Lightweight syntax: a dissident view, Philippe Lhoste
- Re: Lightweight syntax: a dissident view, Pierre-Yves Gérardy
- Re: Lightweight syntax: a dissident view, Mark Hamburg
- Re: Lightweight syntax: a dissident view, Pierre-Yves Gérardy
- Re: Lightweight syntax: a dissident view, Pierre-Yves Gérardy
- Re: Lightweight syntax: a dissident view, Axel Kittenberger
- Re: Lightweight syntax: a dissident view, steve donovan
- Re: Lightweight syntax: a dissident view, phlnc8
- Re: Lightweight syntax: a dissident view, Doug Lua
- Re: Lightweight syntax: a dissident view, Dirk Laurie
- Re: Lightweight syntax: a dissident view, Luis Carvalho
- Re: Lightweight syntax: a dissident view, steve donovan