Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
nine_k
1y ago
0 comments
Save
Share
Said promise should also be checked for sanity. E.g.
for i in range(N) { for i in range(M) { # Typo; wanted j. # The compiler should complain. } }
0 comments
1 comments · 1 top-level
top
newest
oldest
Maxatar
1y ago
The Rust compiler would complain in this case that the initial i variable is unused. Unused variables should be named with an underscore, _.
j
/
k
navigate · click thread line to collapse