Comment

Comment by eru

Doesn't mutability force you to actually copy data? Immutability enables sharing, which needs less copying.

(Of course what it really comes down to, is whether you use multiple different copies of your data structures. If you only ever use one, even functional languages can update them in place. See Clean's linear types as an example, or Haskell's ST monad.)

parent eru 15 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton