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

One surprise perhaps is that both Python and C++ have multiple inheritance whereas Rust doesn't have implementation inheritance at all (Rust's traits can inherit but data structures and implementations cannot).

Both C++ and Rust have similar Quiz sites:

https://dtolnay.github.io/rust-quiz/

https://cppquiz.org/

You'll notice immediately that the Rust questions aren't trivial - this language does have some opportunities for confusion and weird ways to write things that surprise you and the quiz explores some things you'd probably never do and shouldn't do and their consequences are not obvious.

But on the other hand you will quickly also realise that while "That's Undefined Behaviour" could be the correct answer in C++ (it's the correct answer for several of the default questions) it's never going to be the right answer in (safe) Rust by definition.



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

Search: