3 ms·
I would like it better if switch statements used the keyword `continue` to fallthrough and `break` is implied. Switch statements are much easier to maintain if
by xahrepap 8y ago
I would like it better if switch statements used the keyword `continue` to fallthrough and `break` is implied.
Switch statements are much easier to maintain if you keep them one or two lines long, and just have it immediately delegate to a function call then break. I think that's true for almost any code-flow syntax: if/elseif/else blocks, various loops. They all break down quickly if you have too much in them.