Programming language poll! Should break/continue/return be allowed in the middle of a block, even though any code after is unreachable?
-
-
@TimSweeneyEpic@icculus I think there are reasonable cases where it could catch bugs: while(a) { b(); break; c(); } is clearly an error. -
@fserb@TimSweeneyEpic To be accurate: it only becomes an error when I forget to remove that break after I finish debugging b(). :P - 5 more replies
New conversation -
-
-
@TimSweeneyEpic@icculus *Should* an unreachable block be semantically valid? Should unchecked deref of a nullable pointer be valid? -
- 1 more reply
New conversation -
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.