Hacker News new | ask | show | jobs
by jkaptur 760 days ago
Another cool aspect of this and (if I understand correctly), where Rust really helps you is that you can explore multiple branches in parallel, since the linked list is immutable.
2 comments

To be fair, lack of concurrency safety never stopped C and C++ devs from boldly doing just that, anyway!
What if the linked list is cycled or doubly-linked?
I was talking about this case in particular, where we know the list is basically isomorphic to the call stack.
Then Rust isn't the right tool for the job. Rust is great for tree-like structures which is 99% of what you encounter anyway. Unless you're writing a kernel or something.