Le 23/08/2013 19:47, Matthieu Monrocq a écrit :
The most trivial mistake is to have `+=` and `+` defined so that `a +=
5` has a different result than `a = a + 5`

Would it work to make `a += b` always expand to `a = a + b`, and have that not be overridable? Or am I missing something else?

--
Simon Sapin
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to