this post was submitted on 10 Feb 2024
610 points (99.7% liked)
196
16601 readers
1972 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I quite like GNU
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: