-
This is a followup to Function eval order: inside-out, left-right?
-
In
match (a(), b(), c(), d(), e(), ...) {
}
Does anything in Rust guarantee that a, b, c, d, e, ... are evaluated left to right?
This is a followup to Function eval order: inside-out, left-right?
In
match (a(), b(), c(), d(), e(), ...) {
}
Does anything in Rust guarantee that a, b, c, d, e, ... are evaluated left to right?
Yes, Rust guarantees stable evaluation order.
(That's part of why it doesn't have things like postincrement operators.)