2 ms·
If you wanted to use an immutable data structure, then you’d just use one. The im crate is a good example.
by steveklabnik 7y ago
If you wanted to use an immutable data structure, then you’d just use one. The im crate is a good example.
- keymone 7y agoi'm aware that immutable datastructures are implementable in plenty of languages, that's not the point of my argument. top comment claim is that clojure's approach to identity and value-semantics is somehow superseded and invalidated by rust's ownership and borrow checker, which is just too much koolaid. example i gave illustrates that given rust's default tools somebody will either have to deal with unnecessary low level errors (has nothing to do with high-level business logic of "i need this array to have new data") or will find a way to write incorrect code. none of that will happen given clojure's default tools.