4 ms·
> I don't think this approach is necessarily incompatible with garbage collection; theoretically a language like Go could have separate vector and slice types l
by cdoxsey 9y ago
> I don't think this approach is necessarily incompatible with garbage collection; theoretically a language like Go could have separate vector and slice types like Rust does, and I think that would make these types of optimizations much easier!
Absolutely. It's not a GC issue, it's a design issue. Adding this kind of control would make the language harder to use.
Making the hard case easier to handle for experts makes the easy case harder to handle for everyone.
- saghm 9y agoYep, I definitely agree here! I think it was a reasonable choice for Go to make, I just personally prefer working with things the Rust way.