DEV Community

Discussion on: Avoid multiple ElIf situation

Collapse
jhermann profile image
Jürgen Hermann • Edited on

Because the number of code paths is reduced, and the intent of the code is way more clearer (get me a parser for this format). The code is actually simpler, because less chance for the unexpected.

Complexity is not just what is, but what could be.