Amazing video. Coming from a mostly C/C++ and Python background, I have experienced some frustration trying to implement trees with parent references in Rust, experimenting with Option
I like that he is like "well it says (weak) but nothing is there... trust me". Sounds like he has spent a lot of time debugging while putting this together lol :D
Thanks for the video! I try to think about strong/weak references like: "strong implies ownership while weak doesn't", being the latter (weak) more like a bare pointer.
I like the fact he explains between code executions we did this in this paragraph we did that in this paragraph. He doesn't gloss over but is balanced in giving details.
let a = Rc::new(Cons(5, RefCell::new(Rc:new(Nil)))); What this snippet tells me is that writing small functions is more relevant in Rust than typical language. At least you can read it at a high level with small functions.