3 ms·
Functions that have become too complicated should look ugly, so that they're likely to be split into simpler parts (for true readability). When making that spl
by makecheck 17y ago
Functions that have become too complicated should look ugly, so that they're likely to be split into simpler parts (for true readability).
When making that split, it is also helpful to have relevant cleanup code nearby: odds are everything is already in the inner block, instead of having to remove extra code at the end of the function.
- antonovka 17y agoThat's the usual hand-waving argument (if you need this you're doing it wrong), but the fact is that even something with three simple preconditions is quickly rendered unreadable through three nested levels of if statements.