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

Languages, spoken or computer, are adopted following the laws of natural selection, learning curves matter. A lot. It's preferable to have 2 passable developers than a very competent one on a new awesome language.

If C or C++ cannot evolve because of backward compat, those language might naturally evolve to adopt features of Rust or haskell. C++ Lambdas are a good example.

It seems that C++20's concepts are a viable candidate to compete with rust safety mechanism.



>It seems that C++20's concepts are a viable candidate to compete with rust safety mechanism.

No, that's not really something that concepts do. But there are ways of coding and tools using which you can get closer to Rust's safety features in C++. E.g. https://www.modernescpp.com/index.php/c-core-guidelines-life... or https://clang.llvm.org/docs/ThreadSafetyAnalysis.html.




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

Search: