Re:Case against OOP is understated, not overstated (2020)
by cowl on Friday February 11, 2022 @11:04AM
(#30302994)
This is a symtom of seeing everything with the OOP and state glasses.
let's have do_stuff=square and some_state=2.
What does square(2) imply?
OTOH, the second one would be much better (and imply immutability) if it were written as
But it'd also allocate a new state.