Programming language poll! Should break/continue/return be allowed in the middle of a block, even though any code after is unreachable?
-
-
Replying to @TimSweeneyEpic
@TimSweeneyEpic@icculus I think there are reasonable cases where it could catch bugs: while(a) { b(); break; c(); } is clearly an error.2 replies 0 retweets 0 likes -
Replying to @fserb
@fserb@TimSweeneyEpic To be accurate: it only becomes an error when I forget to remove that break after I finish debugging b(). :P2 replies 0 retweets 0 likes -
Replying to @TimSweeneyEpic
@TimSweeneyEpic@icculus isn't it? When compilers warn about unused variables, or if (x = 1) what are they doing?1 reply 0 retweets 0 likes
-
-
Replying to @TimSweeneyEpic
@TimSweeneyEpic@fserb "Maybe try a Visitor pattern next time. Hey, that outfit is really becoming on you. I could use more RAM, btw."0 replies 0 retweets 6 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.