3 ms·
Looking at this post https://news.ycombinator.com/item?id=15613848 https://news.ycombinator.com/item?id=15613848, I wonder if it could help to simplify C++ by m
by wtetzner 9y ago
Looking at this post https://news.ycombinator.com/item?id=15613848 https://news.ycombinator.com/item?id=15613848, I wonder if it could help to simplify C++ by moving some of the existing features into libraries, which you would have to include for backwards compatibility, but could do without if you didn't need backwards compatibility.
- mattnewport 9y agoBackwards compatibility in C++ means "your existing code still compiles and does the same thing". Can you give an example of a situation where that could be achieved with your proposal?
- wtetzner 9y agoWell, my thought was that you'd just have different profiles, like is already used: -std=c++20-full or -std=c++20-light Perhaps c++20-light could never become the default, since it would break backwards compatibility, but you could always set the flag. I dunno. It was just a thought I had when reading about the new feature, not something I've thought through.