5 ms·
Can't the returning function be named appropriately?
by sombremesa 7y ago
Can't the returning function be named appropriately?
- bberrry 7y agoI mean, it's the same thing as extracting the boolean expression into a function and calling that in the if statement. It's also easy to imagine a quite long expression that would benefit from breaking into two or three descriptive names. It's a good tool for your own sake when coding, to not get the logic tangled up.