lua-users home
lua-l archive

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


On Nov 23, 2010, at 6:50 AM, Axel Kittenberger wrote:

> Optically I like pipes too, since they also remind me of their use in
> the shell to "tie things together". Their main problem tough is they
> cannot nest, as the begin and end token is identical. One could say,
> if you want nesting use full function syntax please, but well maybe
> someone has a problem with it not working.
> 
> | a, b => | x => x* x * x | (a+b) |
> 
> -> supposedly a real challenge for the parser.

I like pipes too, but I might also want to see them used as pipes when doing syntax extension. Coroutines could be interesting with a pipe syntax. On the other hand, there are probably other tokens -- e.g., >> -- that could work just as well in that context.

Mark