I always forget break statements at the end of each case in C++ and the results are always hilarious
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It should be written in that alien language Trace deciphers in Axiom Verge.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
There are constructions that rely on fall through that would break if brackets were required, I believe.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I didn’t even know you could use brackets on switch cases. Though the example you gave doesn’t sound like it would work in C#, I’ve had variables declared inside a for loop impeding me from declaring another with the same name later in a completely unrelated part of the method
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
there are some situations where you need to cases to basically do the same thing as another case, so you don't want {} to enclose the case so it can fall through into the next case and save time on repeated code, although with that said extra checks are needed instead.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Argh, I keep forgetting that's an option, and there have been multiple instances where it would have been cleaner to use scoping.
Thanks. 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.