4 ms·
> lack of need to create a new immutable copy of a bank account’s ledger to add another transaction, all good reasons to allow mutability. The immutability koo
by mrkeen 2y ago
> lack of need to create a new immutable copy of a bank account’s ledger to add another transaction, all good reasons to allow mutability.
The immutability kool-aid was already drunk by the banking industry 5000 years ago. That's why you're appending transactions on a ledger instead of mutating bank balances (behind getters and setters, so it's "encapsulated" /s).
- IgorPartola 2y agoSure but your account balance does mutate and so does the length of the ledger. (I know this was sarcasm, but I do think those are important considerations).
- mrkeen 2y agoIf your account balance and ledger disagree, which one is right?