dave hates jokes 😉
This commit is contained in:
parent
651106462c
commit
b85191ae0f
@ -1326,10 +1326,7 @@ upper bound is exclusive, though, so our loop will print `0` through `9`, not
|
||||
|
||||
Rust does not have the "C style" `for` loop on purpose. Manually controlling
|
||||
each element of the loop is complicated and error prone, even for experienced C
|
||||
developers. There's an old joke that goes, "There are two hard problems in
|
||||
computer science: naming things, cache invalidation, and off-by-one errors."
|
||||
The joke, of course, being that the setup says "two hard problems" but then
|
||||
lists three things. This happens quite a bit with "C style" `for` loops.
|
||||
developers.
|
||||
|
||||
We'll talk more about `for` when we cover **iterator**s, later in the Guide.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user