logoalt Hacker News

giancarlostoro • today at 5:10 PM • 3 replies • view on HN

I'm surprised nobody's made an "experimental" standards committee for C++ where they can approve features that are being considered for C++ but not fully approved, orgs that build compilers could target approved experimental features, and we can all see what it functions like and looks like ahead of time, once proven, the official committee approves it.

I remember that for a long time a lot of Rust projects required the nightly compiler, and it put me off Rust for a long time, but a lot of those features came into the fold and now Rust is very well defined.


Replies

Xirdus • today at 5:38 PM

GCC routinely adds support for C++ features before they're fully approved. -std=c++0x was added 2 years before C++11 was published, and initially included some features that were ultimately removed. -std=c++26 is available since 2024 and -std=c++29 is going to be added soon in GCC 17.

Similar story with Clang, though CBA to find exact dates/versions.

jcelerier • today at 5:11 PM

> orgs that build compilers could target approved experimental features,

there's no law that clang, gcc, msvc must only implement official released C++ standard feature

➕ show 1 reply
jayd16 • today at 5:22 PM

This is every single C++ project.

➕ show 1 reply