5 ms·
Modern C++ has many tricks to get memory and thread safety pinned down, but in my experience the new capabilities are entirely subsumed by old code. If Bjarne w
by temp2022account 4y ago
Modern C++ has many tricks to get memory and thread safety pinned down, but in my experience the new capabilities are entirely subsumed by old code. If Bjarne wants C++ to be a language worth choosing, we need some options to remove all of the footguns from before c++11, and remove the redundancies with partially-well-done new features to yield a single-well-done way of handling memory and multithreading.
If Bjarne put something akin to Rust's Editions in C++, and regularly removed poor designs, then yes C++ would be pretty close to Rust for new projects.
- JonChesterfield 4y agoNo can do. That would break backwards compatibility (thou shalt not do so) or fragment the language (likewise). What we can have is increasingly elaborate syntax and progressively better tooling.
- steveklabnik 4y agoEditions were proposed in 2017, but were postponed. I haven’t heard of any forward movement on it lately.
- pjmlp 4y agoThey were taken down, because they cannot cover all scenarios of language evolution, in grammar, language semantics, across compilers, binary libraries and ABI, as such failed to gain wide support.
- steveklabnik 4y agoThis was not the reasons cited in the actual votes to postpone https://github.com/cplusplus/papers/issues/631#issuecomment-585231742 https://github.com/cplusplus/papers/issues/631#issuecomment-... Not that that means you're strictly wrong, mind you, just that only textual inclusion issues and template issues were voted on as being blocking at that time.