2 ms·
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
by jkaptur 2y 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.
- eimrine 2y agoWhat if the linked list is cycled or doubly-linked?
- amelius 2y agoThen 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.
- jkaptur 2y agoI was talking about this case in particular, where we know the list is basically isomorphic to the call stack.
- ComputerGuru 2y agoTo be fair, lack of concurrency safety never stopped C and C++ devs from boldly doing just that, anyway!