On Wed, Jan 29, 2014 at 10:20 PM, Samuel Williams
<[email protected]> wrote:
> What about constant folding? Surely let mut x = 10 is easier for the
> compiler to optimise?

Rust can warn with 100% accuracy if a variable is unnecessarily
mutable. So, there's no benefit in terms of optimizations.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to