Skip to content
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

Or patterns #280

Merged
merged 10 commits into from Feb 6, 2023
Merged

Or patterns #280

merged 10 commits into from Feb 6, 2023

Conversation

JonasWanke
Copy link
Member

@JonasWanke JonasWanke commented Feb 3, 2023

Don't use them yet; values captured in identifiers can be in an incorrect order (#315). I'll work on improving our debugging tools first to better debug this

Checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

@JonasWanke JonasWanke added the T: Feature Type: New Features label Feb 3, 2023
@jwbot jwbot added the P: Compiler: Frontend Package: The compiler frontend label Feb 3, 2023
compiler/src/compiler/string_to_rcst.rs Outdated Show resolved Hide resolved
compiler/src/compiler/hir_to_mir.rs Outdated Show resolved Hide resolved
compiler/src/compiler/hir_to_mir.rs Outdated Show resolved Hide resolved
compiler/src/compiler/hir_to_mir.rs Outdated Show resolved Hide resolved
compiler/src/compiler/hir_to_mir.rs Outdated Show resolved Hide resolved
compiler/src/compiler/hir_to_mir.rs Outdated Show resolved Hide resolved
Co-authored-by: Marcel Garus <marcel.garus@gmail.com>
JonasWanke and others added 2 commits February 3, 2023 23:35
Co-authored-by: Marcel Garus <marcel.garus@gmail.com>
@JonasWanke JonasWanke mentioned this pull request Feb 3, 2023
2 tasks
@JonasWanke JonasWanke mentioned this pull request Feb 5, 2023
@JonasWanke JonasWanke merged commit e5ba2f1 into main Feb 6, 2023
@JonasWanke JonasWanke deleted the or-patterns branch February 6, 2023 09:18
@MarcelGarus
Copy link
Member

Just wondering: It is safe to use or patterns while not capturing identifiers, right?

i.e. True | False

@JonasWanke
Copy link
Member Author

Yes, I didn't find bugs in those

@JonasWanke JonasWanke added the P: Compiler: Language Server Package: The Candy Language Server label Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler: Frontend Package: The compiler frontend P: Compiler: Language Server Package: The Candy Language Server T: Feature Type: New Features
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

3 participants