Hacker News new | ask | show | jobs
by sanderjd 520 days ago
I feel like your conclusion is backwards based on your argument...

> I also have the benefit of the compiler screaming at me if I forget a brace, pointing to the exact error including telling me when indentation is suggesting a brace is missing!

What the compiler is telling you here is that the braces are superfluous, because the indentation is already describing the structure correctly. So why bother?

My take is that in the (amazing!) new world with near universal usage of standardized linters, this whole debate is stale, it just doesn't matter either way. Everything is indented properly, whether or not it is necessary for correctness. So whether there is a bit of additional bracing or not, who cares?

1 comments

It's much easier to navigate to the end of a codeblock in the editor with vim. I can't do the same without braces. I admit this is an irrelevant argument if you're outside the vim echo chamber...but it's a pretty big echo chamber
I use vim, and yes, this is a very specific annoyance. But I just go to the beginning of the next block.