3 ms·
I get it, immutability is nice. But doesn’t it come with memory and runtime overheads for having to create and store new objects?
by ziofill 2y ago
I get it, immutability is nice. But doesn’t it come with memory and runtime overheads for having to create and store new objects?
- feznyng 2y agoDepends on the language, some have runtime optimizations to make copies fast (usually FPs with purely immutable data). Not sure if that’s the case in something like Java.