On Nov 20, 2013, at 8:52 AM, Corey Richardson <co...@octayn.net> wrote:
> I do, and I agree a lot with Niko's arguments from the meeting. I
> agree that &* is a bit ugly, but I prefer the ugly syntax to the
> ambiguity. I don't find Kevin's argument particularly convincing;
> those changes can make your code fail to compile, but *not* to
> transparently behave differently (simply by changing the types of the
> args).
Sure they can.
fn foo(_: int) {}
let mut x = 0;
foo(x);
x -= 1;
println!("{}", x);
prints -1. Change the first line to
fn foo(_: uint) {}
and now this prints 18446744073709551615 (on my 64-bit machine).
-Kevin
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev