Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I feel C++ needs to do the following to be able to survive [...]

absolutely. unfortunately, saftey oriented proposals tend to focus on a weaker warning-esque approach ([[nodiscard]], contracts, etc.), which, in my opinion, will ultimately only make things worse. i'll stay away from my type-systems-are-great soapbox :)

the refusal to break ABI, remove non-destructive moves, the strengthening of concepts more akin to their original proposal, are not even on the horizon of discussion, despite us having exemplars of all 3.

it's perplexing, to say the least.



The refusal to do an ABI break is a crazy move on the C++ committee's part. C++ without an ABI break loses performance, has a bunch of confusing features (eg bucket iterators in hash tables...), and completely prevents a lot of proposals that would make smart pointers work a lot better.


Not entirely disagreeing there, but to clarify, breaking hash table iterator guarantees would be an API break, not merely an ABI break.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: