3 ms·
> If I can't use the data structures I'm accustomed to (because of mutability issues), what are the alternatives? You can use the data structures you are used
by bsder 11y ago
> If I can't use the data structures I'm accustomed to (because of mutability issues), what are the alternatives?
You can use the data structures you are used to just fine, thanks. Just because everything is immutable by default doesn't mean everything is immutable all the time.
In addition, any "unsafety" is generally buried deep inside a library and contained properly. Yes, if you are trying to implement something like a ConcurrentSkipListMap, you're probably going to have "unsafe" in your code (and probably some assembly language). But, if you are using the library, probably not.