-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
change "when" to "if" in pattern guards #1396
Comments
I'm ok with this. |
Is it possible that for this one only needs to
? |
Yes. |
The parser will need to temporarily accept both 'when' and 'if', then we do a snapshot, then remove 'when'. |
@Lenny222 are you working on this? |
@brson I considered it, but haven't started yet. Someone can go ahead if he wants to. |
I will implement this. I have most of the changes done but need to test it. |
@brson The above change makes the parser accept both I have the remaining changes to the code under |
lgtm. I will let you know when the snapshot is done. |
Also fix the pretty printer, making it output 'if' instead of 'when'. Issue #1396
We will also need to update the language docs and the tutorial |
OK. I will do that too and put the commits in this issue before I close it. |
Snapshots are done. |
@brson The 3 commits mentioned above should take care of the rest of this issue. They replace all occurrences of I believe with all of that taken care of, once merged, that should close this issue. Note: I re-pushed my |
Thanks! Merged. |
Support inline asm on AArch64
I suggest we replace the word "when" in pattern guards with the word "if". This is the only place that "when" appears in our grammar and so it would seem more consistent:
The text was updated successfully, but these errors were encountered: