-
Notifications
You must be signed in to change notification settings - Fork 213
Record types and try-catch-on #2406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
On and probably /cc @bwilkerson |
The general problem is that With records, the type can now start with a non-identifier, so "built-in-identifier type" doesn't have to be two adjacent identifiers, and same for a contextual keyword followed by a type, which means it becomes ambiguous with many more grammar productions. At least, a lot of our keywords can only occur as keywords outside of function bodies, and are either required by the context or clearly distinguishable from alternatives (not occurring where any expression can also occur). So, this may be the only actual ambiguity. (But we should check.) I'll (presently) suggest that we make So, |
+1. I'll update the proposal to make that explicit. cc @leafpetersen @eernstg @jakemac53 @natebosch @stereotype441 @kallentu |
I've asked in the chat as well. Posting here to make it easier to find if needed later.
Currently
is a try statement, then a local function declaration named
on
taking 3 parameters, then a call to that local function.With record types this will instead parse as a try statement with a
on specificRecordType
clause, then a function call.Any input?
/cc @lrhn @munificent @eernstg
The text was updated successfully, but these errors were encountered: