Hacker News new | ask | show | jobs
by theshrike79 732 days ago
Braces _always_.

It just needs one tired / inexperienced / somethingelse coder to "quickly add" an extra call to the topmost if and then you'll have interesting issues.

I'll take the "ugly" braces every day compared to having risky structures like that in the code at all.

1 comments

Thorough testing should catch all those "interestig" issues.

But easier maintainability I also favor braces everywhere.