Re:Comparison between Rust and D
by yokohummer7 on Saturday June 25, 2016 @01:49PM
(#11977211)
It doesn't have the same semantics, because even after introducing the new variable, it is still immutable. So you cannot accidentally modify the new variable. e.g.,
You can even turn back a mutable varaible into an immutable variable, like this:
This can be useful to "pin" the variable after a large number of calculations done to it.
[ Parent
| on HN ]
There are no comments on this comment yet.