3 ms·
Well, Haskell does certainly have mutable storage. They just all live at the IO monad, because they are mutable... Anyway, code that patches immutable data com
by marcosdumay 11y ago
Well, Haskell does certainly have mutable storage. They just all live at the IO monad, because they are mutable...
Anyway, code that patches immutable data compiled by GHC behaves much like the plain mutable storage you'd write in C. It may not be always simpler to write (but for complex data, it normally is - and why are you writing so much simple data anyway? is it because of your language limitations?) but is checked by the compiler, what's a great bonus.