[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight syntax: a dissident view
- From: Axel Kittenberger <axkibe@...>
- Date: Sat, 27 Nov 2010 17:39:27 +0100
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
>
>
- 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
- Re: Lightweight syntax: a dissident view, Nilson