Rust's for-loop construct probably changed
Rust's for-loop construct probably changed
Posted Jul 4, 2013 7:46 UTC (Thu) by renox (guest, #23785)In reply to: Rust's for-loop construct probably changed by djc
Parent article: Philosophy and "for" loops — more from Go and Rust
Yes, Rust "pulled a Linus" and changed the semantic of their "for" loops just at the same time that the LWN article was up.
A very interesting comparison of internal(callback) vs external(cursor) iterators:
http://journal.stuffwithstuff.com/2013/01/13/iteration-in...
A very interesting comparison of internal(callback) vs external(cursor) iterators:
http://journal.stuffwithstuff.com/2013/01/13/iteration-in...
It's also discussed here http://www.reddit.com/r/programming/comments/1hl2qr/rust_...
Also I think that in the context of iterators D ranges should have been part of the LWN article..
