5 ms·
Immutable data structures look awful in mutable languages; also, the performance is worse. Still, don't confuse syntactic overhead with the general usability o
by pka 11y ago
Immutable data structures look awful in mutable languages; also, the performance is worse.
Still, don't confuse syntactic overhead with the general usability of an idea. Writing a['x'] += 3; would be godawful in pure assembler, but we still use hashmaps, references, variables and operators daily when it's easy enough to do so.
- deadowl 11y agoUnless they're representing date/time or strings, then immutability is an excellent feature.