4 ms·
Maybe because otherwise you need a 'sufficiently smart compiler' which will be able to extract the right amount of performance from the underlying hardware whic
by Agingcoder 4y ago
Maybe because otherwise you need a 'sufficiently smart compiler' which will be able to extract the right amount of performance from the underlying hardware which is mutable. Also I don't know if you can implement persistent data structures without a gc and with the rust typesystem.
Maybe because it's designed to replace existing, familiar imperative and mutable languages.
- masklinn 4y ago> Also I don't know if you can implement persistent data structures without a gc and with the rust typesystem. Well you can use Rc/Arc (that’s what Bodil’s imrs does for instance), but essentially yes, by design and purpose a persistent data structure has confused ownership, and thus requires a separate layer handling memory reclamation.