Ask HN: Should the C++ committee freeze STD and make STD2?
1–9 of 9 posts
Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#2Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#3Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#4Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#5Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#6Anything that stops or slows down the madness is welcome.
Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#7Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#8What would help is deprecating and, over time, removing features that, if needed, are better implemented on top of newer, better APIs. Providing source code for such an implementation would make it easy for old code to be changed to compile with the new version; all that would be needed would be changing #include by #include "foo" and changing references to the std namespace to that of the new library (there may be thorny edge cases here, but I can’t think of one)
For example, iostreams can be moved outside of the standard if an implementation of its API on top of std::format were provided.
I think they wouldn’t have to support such a library forever. A decade or two should IMO be enough. If code needs it after that, they can take on the burden of maintaining it.
Re: Ask HN: Should the C++ committee freeze STD and make STD2?
#9As long as old code continues to compile and run correctly on new compiler/language versions, I don't care what the committee does. From my point of view they should first and formost decelerate, so that there is at least enough time for compiler writers to keep up and collect enough experience between the standards. Cross-compiler compatibility has become an adventure since C++11. I only use a very conservative subs…
This is what I do in my own projects, but I don't have that option at work.