the thing about rust and linked lists is the weird equivocation between singly and doubly linked lists
-
Show this thread
-
"linked lists are simple, singly linked lists are CS 101." yes, and i can write a singly linked list in a few dozen lines of Rust with no unsafe code.
5 replies 0 retweets 14 likesShow this thread
Replying to @withoutboats
Even doubly linked lists are easy in Rust. Example: http://bit.ly/2BUkzFV IMO, the go-to answer to "Rust can't do circular data structures" should never be "use Rc<RefCell<T>>" nor "use unsafe". We should simply suggest using the slab crate instead.
3:35 AM - 29 Dec 2017
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.