Skip to content

Commit

Permalink
dave hates jokes 😉
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Sep 10, 2014
1 parent 6511064 commit b85191a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/doc/guide.md
Expand Up @@ -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.

Expand Down

0 comments on commit b85191a

Please sign in to comment.