Rust tuple: evaluation order: left -> right?

  1. This is a followup to Function eval order: inside-out, left-right?

  2. In

match (a(), b(), c(), d(), e(), ...) {
}

Does anything in Rust guarantee that a, b, c, d, e, ... are evaluated left to right?

1 Like

Yes, Rust guarantees stable evaluation order.

(That's part of why it doesn't have things like postincrement operators.)

3 Likes