News for hackers. Stuff that matters.
Re:Rust for functional programmers by dbaupp on Sunday July 13, 2014 @06:32PM (#8028758)
It doesn't actually expand to that any more. You can see what it does expand to by running rustc --pretty expanded with a recent compiler:

  for pattern in iterator {
      body
  }
becomes

  match &mut iterator {
      i => loop {
          match i.next() {
              None => break ,
              Some(mut _value) => { let pattern = _value; { body } }
          }
      }
  }

There are no comments on this comment yet.