3 ms·
I believe he's referring to the latter -- as opposed to: if blah { code } else { code } Personally, I don't prefer the K&R way
by jmduke 14y ago
I believe he's referring to the latter -- as opposed to:
if blah {
code
}
else {
code
}
Personally, I don't prefer the K&R way but I don't think it's either strange nor troublesome enough to worry about for more than a few seconds.
- samatman 14y agoThe argument is that putting anything between } and else breaks the else statement, so using } else { stresses that you cannot add statements either before or after the else.