4 ms·
Classes don't need to have mutable state. I've written several rather useful classes that were completely immutable after initialization. As such, there are no
by Sanddancer 12y ago
Classes don't need to have mutable state. I've written several rather useful classes that were completely immutable after initialization. As such, there are no things to keep track of. No side-effects, nothing like that, a snapshot in time of whatever values I need to pass elsewhere.