lua-users home
lua-l archive

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


Mark Hamburg wrote:
The following ideas started with studying LINQ, but LINQ is pretty clearly just a piping model for data together with some useful syntax in C# and VB and ways to delay evaluation long enough to allow for translation into SQL or other mechanisms. I'm not going to address how to get to those latter enhancements but pipes are good as any Unix programmer will tell you and as Diego Nehab demonstrated in LTN 12 (http://lua-users.org/wiki/FiltersSourcesAndSinks). So, here are two proposals for how to add pipes to Lua's syntax:

Is this significantly different from the coroutine example in
the PiL book  <http://www.lua.org/pil/9.2.html> that goes
something like:

consumer( filter ( producer() ) )

Don't get me wrong, I like pipes, I'm just not seeing how
the piping you're proposing is anything more than syntactic
sugar for the above code...

Ralph