Interesting - so if there is no difference, what is the point of "let mut" ?


On 30 January 2014 16:21, Patrick Walton <[email protected]> wrote:

> 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.
>
> Patrick
>
>
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to