Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
int_19h
on Jan 20, 2021
|
parent
|
context
|
favorite
| on:
The Apple goto fail vulnerability: lessons learned...
What's the practical difference between:
if (foo) bar; else baz;
and:
if (foo) { bar; } else { baz; }
The latter has one extra line, which is hardly bloat. It also has the braces, of course, but the upside of this style is that it's clear where the compound statement begins (it's the line that
doesn't
start with a brace!), and where it continues.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: