3 ms·
From experience, I would generalise this advice to, "let the callers of the API control side effects". The justification is largely the same, i.e. that the cal
by yen223 7y ago
From experience, I would generalise this advice to, "let the callers of the API control side effects".
The justification is largely the same, i.e. that the caller generally has more context and thus better ability to decide when and how side-effects should happen.
- kazinator 7y agoLisp n00b on StackOverflow: "why the append function didn't change my list?" Because it's letting the callers control side-effects! :)