3 ms·
Also failed to use std::thread and its related synchronization primitives. And nobody who's been writing C or C++ for more than five minutes would actually mak
by TillE 12y ago
Also failed to use std::thread and its related synchronization primitives.
And nobody who's been writing C or C++ for more than five minutes would actually make that mistake with a switch statement (omitting breaks). On the contrary, its fall-through behavior is often very convenient.
- jzwinck 12y agoI missed a break in a switch a few weeks ago. I have been programming in C++ for more than a decade.
- iopq 12y agoThere have been actual real world examples of simple things like one line if statements and forgetting switches breaking code in production software and leading to VERY dangerous things. Especially in C/C++ code.
- andywood 12y agoI have to agree with you. It's never registered as a problem for me. I think of it like an ordinary kitchen knife. Yeah there's an off chance I might cut myself, but 99% of the time I'm just going to enjoy a steak.