On Tue, Sep 11, 2012 at 7:27 AM, Patrick Walton <[email protected]> wrote:
> Hi,
>
> This leads to this issue:
>
>     let (let x, let y) = (1, 2);
>
> And it would be very difficult to parse something like this:
>
>     (let x, let y) = (1, 2);
>
> Because the parser would have to do unbounded lookahead here to determine
> whether we're in a pattern or not.

Hi Patrick,

Thanks for your reply.

I'm sure you've already seen and read my more-detailed reply to Brian
by now, but just for the sake of conversation thread completeness
in the mailing-list archives, I wouldn't have any objections to the
lang spec defining a stand-alone tuple destructuring 'let' statement
as syntax that "just is".

(Particularly given the difficulty of implementing the alternative.)

Thanks,
jb
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to