3 ms·
Few languages that have copied their if statement from C have adopted C's exact syntax. Most, if not all, make the braces mandatory. It is a flaw in the languag
by jerf 13y ago
Few languages that have copied their if statement from C have adopted C's exact syntax. Most, if not all, make the braces mandatory. It is a flaw in the language that it permits such a dangerous style.
- mercurial 13y agoGo and Rust make the braces mandatory. Hugely more popular curly-braces languages such as Java, Javascript, or C#, don't.