dave hates jokes 😉

This commit is contained in:
Steve Klabnik 2014-09-10 18:24:40 -04:00
parent 651106462c
commit b85191ae0f
1 changed files with 1 additions and 4 deletions

View File

@ -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.