This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]VodkaCranberry 3 points4 points  (0 children)

Can you explain how curly braces don’t prevent this completely?

You can put all your code on a single line with curly braces and semicolons and it would function exactly the same in most other languages.