Comment

Comment by jraph

If you add a garbage collector to Rust, you neutralize one of its strength: the controlled lifetime of objects. You also make memory leaks easier.

I'm convinced Rust is easier to write without the management of lifetimes in a short time span. However, what about long term maintenance, and application stability?

Rust with a GC probably has its uses (compiled language with strong error checking), but one has to know what ship they are boarding.

It also makes it quite closer to D, an "easier C++", compiled language with a GC.

(I'm saying this as someone who tried Rust, and mostly uses GC'd languages)

edit: thanks for the replies below. I hadn't though about this. I guess one should better read my message as "If you remove Rust's lifetime management, …"

parent jraph 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton