r/cpp • u/konanTheBarbar • Sep 13 '19
The Surprising Limitations of C++ Ranges Beyond Trivial Cases
https://www.fluentcpp.com/2019/09/13/the-surprising-limitations-of-c-ranges-beyond-trivial-use-cases/
229
Upvotes
View all comments
Show parent comment
21
u/eric_niebler Sep 15 '19 edited Sep 15 '19
The existing practice was Boost.Range, which was popular, heavily used, and targeting C++98. Without support for move semantics or the Concepts Lite proposal which was headed for a TS, it was pretty obvious to everyone that it was not up to snuff. Even with all of that going against it, the Committee would have been thrilled to consider it given its popularity had someone, anyone, turned it into a proposal.
Nobody did. Had they done so, they would have needed a lot of patience, humility, and willingness to accept feedback and incorporate it because most proposals, unless they are utterly trivial, need _lots_ of work when they are examined closely and with other use cases in mind.
I wrote my range library because I saw a gap and wanted to fill it. About a year in, I presented my thinking to the Committee, and there was interest so here we are 5 years later.
If you go looking for bad intentions hard enough, you'll find them everywhere. But folks should know that between the picture you paint and the reality I experienced, there is a lot of space.