Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The "One True Brace Style" is actually a specific style with that name. It is based on the K&R style, with the additional stipulation that all `if`, `else`, `for`, and `while` statements use braces.



Thanks. I googled and found a page saying OTBS was different from K&R, which was pretty confusing!




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

Search: