Hacker News new | past | comments | ask | show | jobs | submit login

I've been on a team trying to argue that exact thing. If you aren't going to handle the case where the var is neither true nor false, at least by explicitly documenting the fail-safe case, you're just cargo culting. You get a lot of that type of thing in MISRA and automotive codebases.

Any team that realizes that the compiler may choose to optimize out a shit-ton of such code gets an extra gold star.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: