#38 Use braces to unambiguously indicate control flow in if, catch, and other structures

Open
opened 1 month ago by mattatobin · 0 comments

A lot of code uses the following:

if (arg)
  stuff;

While this is valid it makes it more difficult to read and a bit ambiguous in any c-style langauge. Basically change everything like that to:

if (arg) {
  stuff;
}
A lot of code uses the following: ``` if (arg) stuff; ``` While this is valid it makes it more difficult to read and a bit ambiguous in any c-style langauge. Basically change everything like that to: ``` if (arg) { stuff; } ```
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.