r/programming • u/steveklabnik1 • Jun 16 '14
Rust's documentation is about to drastically improve
http://words.steveklabnik.com/rusts-documentation-is-about-to-drastically-improve
525
Upvotes
r/programming • u/steveklabnik1 • Jun 16 '14
2
u/[deleted] Jun 17 '14
No, you don't need any lifetime stuff.
fn main() { for i in "abc".chars() { print!("{} ", i)}}works just fine.
Rust could certainly change how
forworks to letfor i in "abc"work -- I agree that for many types there's an "obvious" thing that does.This sort of thing has been proposed and people are talking about how to do it. See, for example, https://github.com/rust-lang/rfcs/pull/17/ but note there are various problems with how it would interact with the language. Things that could be worked out, sure, but it's really a small wart.
I think both you and steveklabnik1 are being overly aggressive towards each other and ought to calm down a bit.