Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ernesth
on May 24, 2013
|
parent
|
context
|
favorite
| on:
Ifs and &&s and Plan 9's Source Code
When you use the fact that && is not the logical conjunction, you'd better use another if.
if (b != nil) if (b->bla == a->bla)
is so much clearer (and language agnostic) than
if (b != nil && b->bla == a->bla)
piokuc
on May 24, 2013
|
next
[–]
I've never heard about writing language agnostic code in my life, lol!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: