View Single Post
  #5  
Old 03-10-2012, 09:08 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stefan View Post
if you correctly put case "123": { blabla } then it will not happen
Why is this the "correct" syntax? C++/C#/Java/Groovy/PHP/JavaScript all prefer to do it without braces, and they're misleading to new scripters (and reduce readability for all scripters) because they give you the false impression that execution stops at the end of the braces, which may not be true if you're falling through.
__________________
Reply With Quote