In past I had this opinion:
But seeing this video …
… I wonder if my p.o.v. is a pretty individual thing. I like to find solutions where unnecessary allocations are avoided (e.g. here) and then I sometimes find myself spending hours and hours on finding the optimal type signatures for my problem. A real time killer. It's fun but I see how this lowers my productivity, at least in the short term (though I learn a lot about Rust but this seems endless).
So using Rc
, hmmmm… I would probably only use it where ownership isn't clear, i.e. where a value is "owned" by several structs or locals. Adding
Rc
everywhere might make type signatures also a bit complex and difficult to overlook.