5 ms·
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 i
by lorenzhs 11y ago
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.
- hellofunk 11y agoI've seen it in other languages, just not in C++ before. I like it.
- skeuomorf 11y agoYeah, 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#L90 https://github.com/skeuomorf/conshash/blob/master/src/lib.rs...