News for hackers. Stuff that matters.
Re:Comparison between Rust and D by kibwen on Saturday June 25, 2016 @04:52PM (#11977931)

  > isn't it just mutability with different syntax then?
For one thing, in order to take a mutable reference to a binding, that binding must be declared as `mut`.

    let mut a = 2;
    let b = 3;
    let x = &mut a;
    // let y = &mut b;  // error: cannot borrow immutable local variable `b` as mutable

There are no comments on this comment yet.