this post was submitted on 10 Feb 2024
224 points (100.0% liked)
196
16490 readers
2699 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
Hmm, I think the condition gets newlined and you K&R on the closing parenthesis IMO:
You could also keep
isSomething
on the first line too, but I think it's nice to keep the whole multiline condition at the same indent widthThis is the way.