Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One doesn't need to keep large copies, since immutability allows common substructures to be shared. (That said, it still seems rather unlikely that an immutable implementation will use less memory.)


That's not a property of immutability. That's a property of certain specialized data structures, see "Purely Functional Data Structures" for a start, implemented in clojure.


Well, it's a property of basically everything except arrays. So it's more than just "certain specialized data structures".


To be fair, many folks learn immutable data structures with the so called "persistent" data structures.

Which are cool, to be sure. They are far from new, however. So, I'll be a little surprised if it turns out they are a panacea.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: