3 ms·
Also, the way destructors work make it such that most custom linked lists are prone to stack overflows unless they use unsafe.
by slaymaker1907 7y ago
Also, the way destructors work make it such that most custom linked lists are prone to stack overflows unless they use unsafe.
- umanwizard 7y agoFor what it's worth, this is also true of C++, where the most "natural" way to write a linked list is `struct Node { unique_ptr<Node> next; }`