lua-users home
lua-l archive

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


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.