News for hackers. Stuff that matters.
Re:Show HN: How to program in Rust as if it was old school C... by gavinray on Tuesday December 20, 2022 @02:33PM (#34071217)
How is this any different than using a mutable reference or pointer to the "T"?

  struct Pointer<T> { ptr: *mut T }
  struct Pointer<T> { ptr: &mut T }
This is just adding a ton of overhead and memory usage
Re:Show HN: How to program in Rust as if it was old school C... by scotty79 on Tuesday December 20, 2022 @03:13PM (#34071833)
You can safely pass Rc<RefCell<_>> around your program and store inside any structures without pretty much any concern for any lifetimes.