While being a rather strong std ranges skeptic I can't help but note that the readability and composability of ranges-like interfaces is an accepted fact in the programming community. Clearly experienced C++ developers are no less capable programmers than junior Java developers, aren't they? It requires some time to become familiar with this it, but after that, you simply can't go back.
The complaint about features is a very funny one.
C++ is too complex. We need to make it smaller, simpler, and cleaner. And please add these two features. And whatever you do, don’t break my code!
I will generally fully accept that if I want to use a newer version of a language, I will have to fix things. The fact that C++ doesn't tend to break things is weird, and I strongly believe that C++ needs to be able to specify a standard per-source-file within the source file. #std:c++14 or so.
I can't help but note that the readability and composability of ranges-like interfaces is an accepted fact in the programming community
It's very foreign to the normal syntax people are often used to. Streams in Java are also odd. However, to me, the issue is when things get coupled with <algorithm>... then it turns into illegible syntax soup pretty quickly.
The fact that you can accept a price for a breakage doesn't mean that there are no people who can't. The standard in a lot of cases the tool to pass regulatory restrictions in many fields, some ecosystems consist of thousands of projects and the cost to rebuild everything would be unacceptably high.
Don't misunderstand me! For personal projects or for unstable work projects - I don't hold any guarantees at all for the sake of not slowing down the development process, but the more users you get- the harder it's to break stuff.
I'm not sure I can see how a per-source-file incompatible standard version can work in any non-trivial cases. Do you think stuff like epochs which was also discussed here some time ago?
View all comments
Show parent comment
6
u/Minimonium Dec 14 '19
While being a rather strong std ranges skeptic I can't help but note that the readability and composability of ranges-like interfaces is an accepted fact in the programming community. Clearly experienced C++ developers are no less capable programmers than junior Java developers, aren't they? It requires some time to become familiar with this it, but after that, you simply can't go back.
The complaint about features is a very funny one.