Name: Anonymous 2016-01-08 14:23
https://matt.sh/howto-c
Very good read for anyone that wants to write this outdated language in 2016.
Very good read for anyone that wants to write this outdated language in 2016.
It's an accident of history for C to have "brace optional" single statements after loop constructs and conditionals. It is inexcusable to write modern code without braces enforced on every loop and every conditional. Trying to argue "but, the compiler accepts it!" has nothing to do with the readabiltiy, maintainability, understandability, or skimability of code. You aren't programming to please your compiler, you are programming to please future people who have to maintain your current brain state years after everybody has forgotten why anything exists in the first place.