I didn't consider that; `pattern := expression` would require "infinite
lookahead" in the parser, I guess. Good point.

Thanks!

On Wed, Nov 6, 2013 at 8:56 PM, Patrick Walton <[email protected]> wrote:

> `let` tells the parser that there's a pattern coming up.
>
> Languages that do 'x := whatever' can never have destructuring without
> some sort of cover grammar hack.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to