3 ms·
I find the fewer mutations the easier code is to understand, at the level of an individual function. Of course you do not have the safety you would have in a l
by graemep 1y ago
I find the fewer mutations the easier code is to understand, at the level of an individual function.
Of course you do not have the safety you would have in a language that enforces immutability, but there is still a cost (in terms of maintenance and the likelihood of bugs) to mutation.