Hacker News new | past | comments | ask | show | jobs | submit login

Rust is harder than C++ to write a linked list in, or other “more complex than hell world” programs. But large applications i think it ends up being easier than C++. As far as mastering goes, i think far fewer people master c++ just on account of c++ being a massive language. Not only is it a massive language, but its a language with a spec, 3 major compilers, and not all of them agree on everything.



Single linked list is easy to implement in safe Rust. Double linked list is the single linked list with additional pointer (instead of reference) back to parent node.

Pointers are unsafe, so use "unsafe" keyword when dereferencing them.




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

Search: