Hacker News new | past | comments | ask | show | jobs | submit login

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.



The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: