Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
samspot
on Aug 20, 2014
|
parent
|
context
|
favorite
| on:
fork() can fail
Annoyingly, that article refers to the One True Brace Style but doesn't bother to define it or link to it!
klodolph
on Aug 20, 2014
[–]
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.
loup-vaillant
on Aug 20, 2014
|
parent
|
next
[–]
Here:
https://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS
samspot
on Aug 21, 2014
|
parent
|
prev
[–]
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: