3 ms·
I believe this is commonly referred to as a guard clause? I tend to prefer writing things this way too... but I could see an argument for putting something in a
by tudelo 8y ago
I believe this is commonly referred to as a guard clause? I tend to prefer writing things this way too... but I could see an argument for putting something in an else block instead of just leaving it there.