3 ms·
> Rust requires indices to express what can be expressed with just references in Java. This is a big oversimplification. Rust can express a lot more than indic
by Rusky 3y ago
> Rust requires indices to express what can be expressed with just references in Java.
This is a big oversimplification. Rust can express a lot more than indices, and a lot more than what's in this post.
The actual requirement is that you capture your choice in the type system. But this is possible for anything from indices/handles to reference counting to arenas to GC.