[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible Lua enhancements 2: Piping
- From: "Paul Moore" <p.f.moore@...>
- Date: Thu, 18 Dec 2008 11:19:42 +0000
2008/12/18 Mark Hamburg <mark@grubmah.com>:
> On the other hand, I think there is clarity to be gained from:
>
> producer() >> filter >> consumer
>
> You can read the code left-to-right instead of inside-out and understand
> what it does.
An immediate thought - you can do this with a driver function
pipe(producer(), filter1, filter2, ..., consumer)
which looks to me sufficiently straightforward that I doubt new syntax
is worth it.
Paul.