> you can target the latest bleeding edge features, and still be able to compile and run them on 20-year-old browsers through code re-writing
The problem with C++ is the other way: you can't compile 10 year old code because the language has "evolved".
Re:C++23 “Pandemic Edition” is complete
by pclmulqdq on Tuesday February 14, 2023 @08:31AM
(#34788964)
You still can compile 10 year old code - it's fully backwards compatible.
If you choose to write new code in the same way as you did in pre-11 C++, though, people might have a lot of questions for you.
That's what Javascript got surprisingly right IMO: you can target the latest bleeding edge features, and still be able to compile and run them on 20-year-old browsers through code re-writing (aka transpilation) and polyfills [1]
I often wish this was available for other languages, too.
[1] Well, not all features because some if them are notoriously hard to polyfill (IIRC Proxies are one such unpolyfillable feature). And there's the huge issue of the entire world relying on just one guy: https://github.com/zloirock/core-js/blob/master/docs/2023-02...