4 ms·
> It is easier to leak memory I'm not convinced about this at all. I've had far more issues with memory leaks in JavaScript programs than I have with Rust. The
by nicoburns 4y ago
> It is easier to leak memory
I'm not convinced about this at all. I've had far more issues with memory leaks in JavaScript programs than I have with Rust. The only way you're really likely to leak memory in Rust is creating cycles of Rc and Arc types. But I don't think any of my programs have even contained Rc, and only trivial usages of Arc for global resources, which I absolutely wouldn't want to point to each other. JavaScript will let you create the same problem without making it obvious with type signatures. And while you might be lucky and have the GC sort out your mess, it doesn't always manage to.