3 ms·
I still don't get the point of immutability. Sure state change is a problem. How about a log like data structure that stores all modifications of the data? I'm
by foobar_ 7y ago
I still don't get the point of immutability. Sure state change is a problem. How about a log like data structure that stores all modifications of the data?
I'm sticking to procedural coding for the next 10 years and I will try my best to unwash young coders from poop.
- deleted 7y ago[deleted]
- roywiggins 7y agoThat seems like an implementation detail. If you have an append-only log, you can always rely on each entry to never change. That's a kind of immutability. If you hold on to a reference to the log at a particular time, it will never change out from under you.
- foobar_ 7y agoThere should be an alternative to both extremes - complete mutability and complete immutability.
- commandlinefan 7y ago> I still don't get the point of immutability If you're the sole developer, it's probably not a big deal. If you're working with a group of people, immutability is the only way to maintain your sanity.
- foobar_ 7y agoAs compared to POOP sure. How about as compared to Go? Go is a procedural language.