News for hackers. Stuff that matters.
Re:C++23 “Pandemic Edition” is complete by dmitriid on Tuesday February 14, 2023 @07:22AM (#34788335)
> Adopt language epochs so that the language syntax and semantics can be evolved without having to fight backwards compatibility.

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...

Re:C++23 “Pandemic Edition” is complete by hulitu on Tuesday February 14, 2023 @08:14AM (#34788802)
> 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.

Re:C++23 “Pandemic Edition” is complete by pjmlp on Tuesday February 14, 2023 @08:52AM (#34789225)
Mostly backwards compatible.