News for hackers. Stuff that matters.
Re:Why Functional Programming Should Be the Future of Software by skohan on Wednesday November 02, 2022 @08:11AM (#33434433)
Data duplication is a tool which can be used to avoid large classes of bugs, but there's no question it comes at a cost to performance.

If anything, I would say explicit mutability allows us to decrease data duplication. By being explicit about what's mutable and what's not we don't have to resort to holding "safe copies" to ensure shared memory is not being mutated unexpectedly.

There are no comments on this comment yet.