View Single Post
  #12  
Old 07-07-2009, 06:52 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by DustyPorViva View Post
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.
Reply With Quote