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

Rust has lambdas, ADTs, pattern-matching and typeclasses(although not as powerful without kinds). These things alone makes a significant paradigm shift than programming in algol style languages. You can just use ARC<T> for every heap-allocated value and rust will still offer a significant advantage compared to C/C++.


C++20 has all those things as well, except for pattern-matching expected to arrive by C++23. :)

So if it wasn't for the copy-paste compatibility with unsafe C code, there is already quite a few modern features available in the language.




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

Search: