3 ms·
> neither having a ++ operator The bug happens with a function call on the LHS too. > nor by allowing assignment operators (including augmented assignment ops
by Dylan16807 8y ago
> neither having a ++ operator
The bug happens with a function call on the LHS too.
> nor by allowing assignment operators (including augmented assignment ops) to evaluate to the value of their RHS
I'm confused. The assignment is happening last, and whatever it evaluates to is being discarded. How would changing what it evaluates to do anything?
But more importantly, the comment was about implementing Java itself in Rust, not the broken function, and that is why it wouldn't change anything.