News for hackers. Stuff that matters.
Re:How to Get Fired Using Switch Statements and Statement Ex... by climb_stealth on Thursday October 15, 2020 @09:39PM (#24796510)
There are linters that raise an error when there is a fallthrough without an explicit comment [0]. I feel like that should be a must for working with C code.

[0] I don't remember which one it actually was. Possibly something commercial for MISRA compliance.

Re:How to Get Fired Using Switch Statements and Statement Ex... by cjfd on Friday October 16, 2020 @12:05AM (#24797348)
Actually in C++ there is a fallthrough attribute in the language nowadays. https://en.cppreference.com/w/cpp/language/attributes/fallth...