Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
lmarcos
4y ago
0 comments
Save
Share
While using `for` for that particular snippet of code is understandable, you cannot say that
while sum < 1000 {}
reads better (like English).
0 comments
1 comments · 1 top-level
top
newest
oldest
pishpash
4y ago
Only the same if sum == 0 at the start.
j
/
k
navigate · click thread line to collapse