Uh, what ever happened to subslice patterns?

Hmm...

We don't know how to update structs in current Rust, but we'd like to propose the alternative syntax:

RangeTo { ..: ..10 }

because it conceptually makes sense ("all other fields take from this other value" or something).

Then we can extend this syntax to arrays, to match patterns, and then to subslice patterns. Thoughts?

1 Like