Yesterday's snapshot made it safe to start using destructuring
patterns in let, for, and for each. I also fixed a few bugs that
prevented for and for each from properly deriving a type for the loop
variable when you didn't specify one. The happy result is that you can
now do things like this:
for @{key, val} in my_hash.items() {
// Do stuff with the key and val variables
}
It's still no Python, but we're getting close!
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev