3 ms·
If you have only a final “else” instead of a bare “return” in a function that returns a value, you are making it worse. Now when I read the code, my first inst
by makecheck 7y ago
If you have only a final “else” instead of a bare “return” in a function that returns a value, you are making it worse. Now when I read the code, my first instinct is “seems to be a bug, undefined behavior” and I have to read more carefully.
This is a terrible example and a code change I would never approve. The clarity-over-cleverness goal is good but not with these kinds of cases.