3 ms·
> How would one optimize for immutability in this case, other than turning it back into mutability behind the scenes? Roc-lang, which is a functional, systems
by memco 5y ago
> How would one optimize for immutability in this case, other than turning it back into mutability behind the scenes?
Roc-lang, which is a functional, systems language in development uses something called opportunistic in-place mutation to do just that. Here's a video where the creator talks about it: https://youtu.be/vzfy4EKwG_Y?t=1276 https://youtu.be/vzfy4EKwG_Y?t=1276