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

Feature request: 'Or' patterns #1205

Closed
seanmcl opened this issue Apr 26, 2021 · 1 comment
Closed

Feature request: 'Or' patterns #1205

seanmcl opened this issue Apr 26, 2021 · 1 comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language definition Relating to the Dafny language definition itself

Comments

@seanmcl
Copy link
Collaborator

seanmcl commented Apr 26, 2021

Or patterns would be nice to have. For example, to write the code below without them we'd need helper methods which adds to syntactic noise.

function method foo(doc: Doc): nat {
    match doc
      case Empty | Line => something complicated
      case X1 | X2 | X3 => something else complicated
  }
@keyboardDrummer keyboardDrummer added kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language definition Relating to the Dafny language definition itself labels Jul 19, 2021
@stefan-aws
Copy link
Collaborator

Support was added in #2448

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: language definition Relating to the Dafny language definition itself
Projects
None yet
Development

No branches or pull requests

3 participants