adds explanation about multiple literal patterns#551
Conversation
Adds an explanation about multiple literal patterns in case expressions and how guards can be used on them
| // No compiler error | ||
| ``` | ||
|
|
||
| Multiple __literal patterns__ can be matched in one clause using the `|` to separate between each literal value. Only one guard can be added to a case: |
There was a problem hiding this comment.
Remove the stuff about literal patterns please, all patterns use literal syntax, and they are not values between the |s
There was a problem hiding this comment.
Alright. Changed it. Could you review again?
There was a problem hiding this comment.
Nice, thanks!
edit: oh hum, tests are failing for some reason. Can you see why?
edit2: Ah, it says "GitHub Actions has encountered an internal error when running your job.". I'm not sure what that means. Could you try pushing another commit and see what that does please
Sure. I'll push the code again. Sorry for the late response |
|
@lpil CI pushed a tiny change of wording |
|
I think it might be that the runner is out of date. Doing a test here: #552 |
|
Could you rebase on main please 🙏 |
|
Sure. I'll be sending it up right away |
|
@lpil Done |
Adds an explanation about multiple literal patterns in case expressions and how guards can be used on them