View Single Post
Old 02-01-2021, 05:32 PM   #36
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by j.p.s View Post
About once every 10 years or so I forget to include a break at the end of a new case in a switch block.
Now I can blame you: I was going to resist pointing out how switch statements are sketchy because it's perfectly valid to leave out the break, in those weird off-the-wall situations where you want it to fall through. And isn't it the case in C that the value for the case must be a number, int or char? I think in some languages it can be a string or other stuff.
hobnail is offline   Reply With Quote