Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
orangeduck
on May 24, 2013
|
parent
|
context
|
favorite
| on:
Ifs and &&s and Plan 9's Source Code
As an idiom I quite like this form. I often do similar for double iterations:
for (int x = 0; x < width; x++) for (int y = 0; y < height; y++) { do_something(x, y); }
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: