3 ms·
It's a question of persistent data structures and sharing. Efficient code without mutability tends to recreate only the parts that change, and so you don't hav
by dllthomas 13y ago
It's a question of persistent data structures and sharing. Efficient code without mutability tends to recreate only the parts that change, and so you don't have to store a fresh copy of the whole world each update. Of course there is nothing preventing you from doing this in an imperative language, but a preference for mutability discourages it.