Quote:
Originally Posted by DustyPorViva
Didn't Zero just write a guide to switch statements that said pretty much showed efficient ways to not end each statement with a break?
|
That guide just showed
how to use the
switch statement.
I'm saying using
switch like that (usually) only leads to confusing and unfriendly code.
It would have appropriate uses when designing an algorithm where that sort of structure is integral to the script.
However, normally, when coding, falling through should be avoided.