Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ziofill
· 1y ago · 0 comments
I get it, immutability is nice. But doesn’t it come with memory and runtime overheads for having to create and store new objects?
Comments
[–]
feznyng
1y ago
Depends 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.