DEV Community

loading...

Discussion on: Implementing Linked List in Rust

Collapse
chayimfriedman2 profile image
Chayim Friedman

Implementing linked list is good for learning, but I hope you're not trying to actually use it in productions.

Vecs are much better, and if for some reason you want a linked list, use std::collections::LinkedList (unless for some really weird reason you need a singly-linked list, then build it on yourself).

Collapse
felixfaisal profile image
felixfaisal Author

True, It is essentially made for learning . When developing software I would always prefer using existing libraries than creating my own ( don't reinvent the wheel unless the wheel is square shaped ).