3 ms·
It's definitely not a data structure that makes the borrow checker happy. Luckily it's also not a data structure that's required or desirable in 99% of cases, b
by proto_lambda 4y ago
It's definitely not a data structure that makes the borrow checker happy. Luckily it's also not a data structure that's required or desirable in 99% of cases, but the standard library still offers an implementation for those 1% so people don't try to write their own (turns out getting a doubly linked list correct isn't quite as trivial as it may seem).
- Waterluvian 4y agoI’m actually a bit surprised it’s in the standard library if it’s so uncommonly needed. Isn’t Rust’s stdlib tiny with a philosophy of letting the community fill in most things?
- estebank 4y agoThere were arguments made for its non-inclusion[1]. [1]: https://rust-unofficial.github.io/too-many-lists/sixth.html https://rust-unofficial.github.io/too-many-lists/sixth.html
- Waterluvian 4y agoI enjoyed reading this. A fun style.