General responses:
- The if/then/else form of if-exprs will not satisfy ternary users,
I imagine, and requires a bunch of lookahead to find the 'then';
I don't particularly like the look of it.
- Doesn't solve 'alt', does it?
- Still requires the do { ... } block, no?
- I believe a large measure of the purpose of expr-izing everything
was to achieve greater compositionality in the grammar, i.e. for
macro uses and whatnot. I think that's still a valid concern,
so am hesitant to stmt-ize a grab-bag of exprs as suggested.
- If we "ignore" trailing semis, don't we force people to write
final-"nil" with some frequency, as in ML? I thought we had a pretty
hard set of competing forces that pushed us into our current rules.
IOW, I think what marijn's doing is the least-intrusive; it's just a
matter of tightening up the rules where we inject final-"nil" on behalf
of the user. I think!
-Graydon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev