On 11/06/14 07:42, Steve Klabnik wrote:
Rust doesn't have prefix/postfix increment? Or, I just didn't find the right 
syntax of using it?
It does not. x = x + 1. Much more clear, no confusion about what comes
back. Tricky code leads to bugs. :)

FWIW, primitive types offer `x += 1`, and #5992 covers extending this to all types.

https://github.com/mozilla/rust/issues/5992

Huon

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

Reply via email to