3 ms·
Clojure under the hood isn't copying on every operation it's partitioning the same data structure to give immutability to the developer These data structures a
by slifin 8y ago
Clojure under the hood isn't copying on every operation it's partitioning the same data structure to give immutability to the developer
These data structures are called persistent data structures
- prewett 8y agoI was thinking more along the lines of a copy being necessary when you update a game state, or something like that. Is Clojure able to do something like that with partitioning? I think someone had tried doing a game in Clojure and run into problems with copies, and posted his findings to HN a number of years ago. Thanks for pointing out the use of persistent data structures, that is an interesting approach.