Y
Hacker News
new
|
ask
|
show
|
jobs
by
jerf
4446 days 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.
1 comments
mercurial
4446 days ago
Go and Rust make the braces mandatory. Hugely more popular curly-braces languages such as Java, Javascript, or C#, don't.
link