Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lorenzhs
· 10y ago · 0 comments
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.
Comments
[–]
skeuomorf
10y ago
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...
[–]
hellofunk
10y ago
I've seen it in other languages, just not in C++ before. I like it.