[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight syntax: a dissident view
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Fri, 26 Nov 2010 21:17:05 +0100
On Fri, Nov 26, 2010 at 20:10, Mark Hamburg <mark@grubmah.com> wrote:
> \[ x | x > 3 ] -- Unambiguous since \ has no meaning right now
> ^[ x | x > 3 ] -- I haven't checked for ambiguities here
You can use any two character combination beside `..`, `==`, `=>`,
`=<` and `~=`.
stream
:map( $ * $ )
:filter( $ % 2 == 0 )
This is very terse and readable, but also the most restrictive
proposition so far (only one argument, and no statements). You could
extend it with $1 * $2...
Let's throw some more at the wall, hopefully one of them will finally stick.
^[ x,y => x*y ] -- and
^[ x,y | statements => explist ]
or
[: x,y => blah :] -- and
[: x,y : statements => b,l,o,b :]
-- Pierre-Yves
- References:
- Re: Re: Re: Lightweight syntax: a dissident view, Gunnar Zötl
- Re: Re: Re: Lightweight syntax: a dissident view, Luis Carvalho
- Re: Re: Re: Lightweight syntax: a dissident view, Axel Kittenberger
- Re: Re: Re: Lightweight syntax: a dissident view, Pierre-Yves Gérardy
- Re: Re: Re: Lightweight syntax: a dissident view, Roberto Ierusalimschy
- Re: Re: Re: Lightweight syntax: a dissident view, Mateusz Czaplinski
- Re: Re: Re: Lightweight syntax: a dissident view, Axel Kittenberger
- 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, Erik Lindroos
- Re: Lightweight syntax: a dissident view, phlnc8
- Re: Lightweight syntax: a dissident view, Mark Hamburg