mozilla/rust — pull request #4143 by fawek (2012-12-08 20:39:59+00:00)
Title: Add support for destructuring vectors in match expressions

Resubmitting https://github.com/mozilla/rust/pull/4091 as I cannot seem to be able to change the target branch in the original PR. I squashed the commits as there isn't much of a logical separation possible and some of them were in half-broken state.

It'd be great if we could get this in for 0.5 if it's not too late. I'm stil considering @erickt's [a, ..b, c] proposal and wonder what other people think? As we're rejecting that syntax now, we can still be forward compatible with just the [a, ..tail] variant.