On 03/23/2013 10:52 PM, Chris Peterson wrote:
With a one-line code change to parser.rs, the following code compiles as
expected:
fn main() {
// old style
let a = 1u8;
let _b: u16 = a as u16;
// new style
let a = 1: u8;
let _b: u16 = a: u16;
}
I really like this syntax, and it has the added benefit of being
consistent with type annotations; it seems very fluent, just with the
two-line example given above. +1 from me.
Jeaye
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev