Conversation

Has anyone EVER written a switch/case statement WITHOUT forgetting `break` in their first run?

4
0
0
@freddy The Machine Spirit only accepts such an invocation if you first offer the sacrifice of debugging.
0
0
1

@freddy Sure. Autogenerated code: switch, tab tab, enter variable of enum type, tab tab
Everything ready.

From hand? Might be, not sure.

1
0
0

@codingdad maybe my IDE is too bare bones :)

0
0
0

@freddy made worse by them not existing in go which is my primary language, then switching to c++ for my other project…

0
0
0

@freddy But they exist so that fall-through is possible – which will make every sane developer misread the code on the first glance (and probably the next five as well).

0
1
0