Demanding now that the nesting has to be less than three levels deep to omit braces is just moving the goalposts.
Demanding now that the nesting has to be less than three levels deep to omit braces is just moving the goalposts.
Yeah, "else if" is a special case where I wouldn't put braces even if I prefer them everywhere else.
> Demanding now that the nesting has to be less than three levels deep
I specifically asked for a three levels before, in https://news.ycombinator.com/item?id=19162933, not "now".
> Yes, C doesn't force you to use braces here, but this is really overdoing it.
It said nothing about nesting level depth. The question of nesting level appeared later in a child comment of yours which I believe is moving the goalposts. Sorry, I didn't make this clear in my previous comment.
Having said that, I do agree with you that braces are helpful. But then, we should all decide the pants policy in our own homes: https://groups.google.com/d/msg/nodejs/MWaivVTirPY/0pnRjKsgg...