Re:EasyLambda – parallel data processing with modern C++
by lorenzhs on Tuesday March 15, 2016 @08:05AM
(#11288975)
It's very common when chaining lots of operations, each of which transforms the result of the previous one (functional style). I've seen tons of Scala code do it. Writing it all in one line would be quite the unreadable mess.
Re:EasyLambda – parallel data processing with modern C++
by skeuomorf on Tuesday March 15, 2016 @12:44PM
(#11290966)
Yeah, it's pretty common with code that uses the builder pattern as well. I also like to use it with rust combinators e.g. https://github.com/skeuomorf/conshash/blob/master/src/lib.rs...
Re:EasyLambda – parallel data processing with modern C++
by hellofunk on Tuesday March 15, 2016 @08:58AM
(#11289224)
I've seen it in other languages, just not in C++ before. I like it.
Re:EasyLambda – parallel data processing with modern C++
by haptork on Tuesday March 15, 2016 @10:36AM
(#11289900)
Here is an article around this style (ExpressionBuilder) by martin fowler:
http://martinfowler.com/bliki/ExpressionBuilder.html
Re:EasyLambda – parallel data processing with modern C++
by jevinskie on Tuesday March 15, 2016 @11:32PM
(#11294808)
It lets you pass around a FooObject/FooContext and offers you a lot of the powers of a DSL while still being boring, stock BarLanguage. I find it to be very helpful for making declarative-style APIs.
Re:EasyLambda – parallel data processing with modern C++
by sjw_12302198 on Tuesday March 15, 2016 @08:35AM
(#11289114)
[flagged] And why is this downvoted? Do the downvoters disagree with the assertion that hellofunk hasn't seen this idiom before?
Really, dang, you can remove posts like mine but you do nothing to address the real problem here.
Re:EasyLambda – parallel data processing with modern C++
by frou_dh on Tuesday March 15, 2016 @08:40AM
(#11289137)
Presumably it's seen as bikeshedding
Re:EasyLambda – parallel data processing with modern C++
by hellofunk on Tuesday March 15, 2016 @08:57AM
(#11289222)
I'm a little confused, did I write something inappropriate? What is bikeshedding?
Re:EasyLambda – parallel data processing with modern C++
by lorenzhs on Tuesday March 15, 2016 @09:10AM
(#11289305)
It's an argument that communities and organizations give disproportionate weight to trivial issues (like coding style) instead of discussing content. I agree that there are more interesting things to discuss about easyLambda than the placement of newlines.
ezl::rise(readFile<string> (argv[1]).rowSeparator('s').colSeparator(""))