> If not, then the expression doesn't seem to be ambiguous, but I can see,
> that writing the parser would be more tedious.
>
> So is this the reason, an easier parser implementation and therefore
> most likely faster parsing of code?
>

It's not so much the speed of the parser that is the matter, but the
fragility of the grammar. The less lookahead that's required, the more
likely it is that parser error messages will make sense, and the less
likely that a future change to Rust's syntax will introduce an ambiguity.

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

Reply via email to