5 ms·
I'm quite supportive to the anti-if pattern but the presented example sounds me more like "code smells" and doesn't really makes me happy to me anti-if is a gre
by duke360 10y ago
I'm quite supportive to the anti-if pattern but the presented example sounds me more like "code smells" and doesn't really makes me happy
to me anti-if is a great winner when you can safely compute all the execution path in advance (in a way where you have not to nest ifs, of course!) but in situations where your code have to react to something that happens "on the moment"... well, probably "if" are more convenient (not always of course)
anyway thanks to have raised the point, this topic is always interesting to me