News for hackers. Stuff that matters.
Re:C++20 Ranges by Sharlin on Saturday December 22, 2018 @05:19PM (#18742815)
The "for_each" (aka flatmap, or bind, or =<<), "maybe_view", and "yield_if" are basically a DSL for writing (admittedly ugly) lazy list comprehensions (generator expressions in Python or for comprehensions in Scala) in C++ without special language support for them. You're not supposed to have to implement these sorts of building blocks yourself, but they're not voted into the standard either at this point.

There are no comments on this comment yet.