Hacker News new | ask | show | jobs
by eru 5473 days ago
> Persistent data structures intrinsically involve copying on updates, and no amount of compiler cleverness can avoid that.

The compiler magic can help you there. You are looking for linear types.