On Tue, Dec 24, 2013 at 8:17 PM, Vadim <[email protected]> wrote: > I'm again pretty nervous about this, because this is one of the > much-maligned features of C++ references. > > > Why is it maligned, though?
I malign it mainly because it allows (and encourages) confusing code that looks like it's calling a function with a variable as an argument but actually mutates the variable. Arguably, only auto-borrowing immutably would sidestep this issue. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
