2 ms·
Interesting idea, instead of a deep clone, would it be something similar to the copy-on-modify pattern?
by diegojromero 5y ago
Interesting idea, instead of a deep clone, would it be something similar to the copy-on-modify pattern?
- macintux 5y agoCopy on modify would work, certainly. The term I was forgetting when I wrote that is “persistent” data structures, but I’m not sure whether it’s practical to implement persistent structures in a non-functional language like Python. https://hypirion.com/musings/understanding-persistent-vector-pt-1 https://hypirion.com/musings/understanding-persistent-vector...