6 ms·
I've actually never seen anyone do either of those. I've seen if (a) thing; but never with an else, and certainly never with an else that has a multi-line bl
by delecti 11y ago
I've actually never seen anyone do either of those.
I've seen
if (a) thing;
but never with an else, and certainly never with an else that has a multi-line block. That's definitely somethign I'd call out in a CR.
- ilek 11y agoI call it out in CRs when I see it and I've been fixing any of these I come across in code at work. I'd rather a compiler forces me to put braces around everything than let people have the opportunity to do something like the latter from my original comment.