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

Annoyingly, that article refers to the One True Brace Style but doesn't bother to define it or link to it!


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: