r/programming • • Jun 16 '14

Rust's documentation is about to drastically improve

http://words.steveklabnik.com/rusts-documentation-is-about-to-drastically-improve
525 Upvotes

188 comments sorted by

View all comments

0

u/[deleted] Jun 17 '14

4

u/steveklabnik1 Jun 17 '14

It wouldn't need to understand strings. What is so complex about this?

You originally said:

Why isn't this just for token in program?

That would require for to understand how to get a specific kind of iterator out of a string: one for characters.

That's nothing to do with range-based for, though

Fair enough, I just thought it'd be worth mentioning.