Hacker News new | ask | show | jobs
by eli_gottlieb 5070 days ago
There are many benefits to immutability. However, there are only a few smaller additional benefits of functional purity after we're already able to enforce mutability and immutability. Sometimes I really do want to modify some data internally before returning it, and baked-in purity keeps me from "cooking" my data properly.