[rust-dev] "let mut" <-> "var"

Patrick Walton pcwalton at mozilla.com
Wed Jan 29 19:21:23 PST 2014

On 1/29/14 7:20 PM, Samuel Williams wrote:
> What about constant folding? Surely let mut x = 10 is easier for the
> compiler to optimise?

In less advanced compilers, that may be true. But Rust internally 
converts everything to SSA, so there is no difference.


More information about the Rust-dev mailing list