this post was submitted on 10 Feb 2024
629 points (100.0% liked)
196
16732 readers
2449 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
GNU style is logical, because braces are syntactically a single statement:
However, I prefer to entirely avoid unbraced single statements after while/if:
Although this is ok when it fits: