News for hackers. Stuff that matters.
Re:Show HN: How to program in Rust as if it was old school C... by scotty79 on Tuesday December 20, 2022 @03:50PM (#34072340)
Whats most impressive for me is that making completely safe, effortlessly mutable and flexible linked list in Rust (or any other similar structure) can be as simple as:

    struct LinkedListNode {
      data: i32,
      next: Pointer<LinkedListNode>
    }
You still need to care about memory leaks through structs linking to each other though because Rc means "reference counted".

There are no comments on this comment yet.