this post was submitted on 30 Jul 2023
270 points (97.9% liked)

Programmer Humor

32710 readers
716 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 1 year ago (3 children)

There! Now try to make a doubly linked list

[–] [email protected] 5 points 1 year ago

unsafe time.

I've poked around in the Rust linked list tutorial, and it all seems like hacks to me. At the end of the day I think you just need to use raw pointers when you're implementing list operations.

[–] akash_rawal 4 points 1 year ago

quietly implements next and prev references using array index