4 ms·
How would immutable values be better? Can you give an example for what you'd prefer? Note that "old" only is valid in the conditions/contracts, not the main fun
by detaro 8y ago
How would immutable values be better? Can you give an example for what you'd prefer? Note that "old" only is valid in the conditions/contracts, not the main function body.
- jweir 8y agoI am naive on the language and have not used it. At first I thought you could get around using `old` by assigning the new balance to a property `new_balance`, but that won't work since this is an object's property so of course it must be set. I see the value and purpose now.