News for hackers. Stuff that matters.
Re:Garbage collected smart pointers in Rust via concurrent c... by wongarsu on Friday December 13, 2024 @02:21PM (#42411481)
> The cost, of course, is that you, as a developer, need to pay attention to what needs a GC and what doesn't.

But even there, lifetimes make your life easier. If lifetimes work out on their own you know the object will be dropped at some point (at the end of the lifetime). Only when you opt out of unique_ptr-like behavior you have to consider whether Rc/Arc will work (90% of the cases), will work with some special care by using some weak references, or whether you will require a GC

There are no comments on this comment yet.