News for hackers. Stuff that matters.
Re:Rust 0.12.0 released by MichaelGG on Thursday October 09, 2014 @04:21PM (#8434826)
The default seems to be "inferred". That is, 1 + 1i will work, but 1 + 1 is ambiguous. I've just noticed this in use, and don't know what this is officially called. I don't think this will actually be a real annoyance in practice.
Re:Rust 0.12.0 released by kibwen on Thursday October 09, 2014 @04:33PM (#8434885)
It's just type inference. Rust doesn't do automatic integer coercion on arithmetic operations, so once it knows the type of any of the numbers it can deduce the types of all the rest.