Hacker News new | ask | show | jobs
by wtetzner 3155 days ago
Looking at this post 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.
1 comments

Backwards 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?
Well, 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.