2 ms·
I wouldn't write it either way. I would write something like bank.processTransfer(new Transfer(100, checkingAccount, savingsAccount)) where the transfer object
by trophycase 7y ago
I wouldn't write it either way. I would write something like bank.processTransfer(new Transfer(100, checkingAccount, savingsAccount)) where the transfer object is immutable.
- xwowsersx 7y agoCool, but the SmallTalk example requires a lot less squinting which is nice.