These are 2 points of secondary importance (or even less).
What about the following pattern:
for x:Type in expr {
// proceed with x
}
as equivalent to:
for y in expr {
let x = y as Type;
// proceed with x
}
both for iterator loops and range loops?
Actually, my need is to have uint's or u8's in range loops, while the default is
int.
I'm also unhappy with "let n = 1;" yielding by default an int instead of an
uint. I would suggest that if an int value is unsigned, the default type is
uint. A signed int is, semantically, a difference, thus always signed: to get a
default signed int, just write "let n = +1;". Seems both logical and
self-documenting, imo.
Again, quite unimportant and definitely not of high priority. Just sending this
for the record.
Denis
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev