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

SuccessorML or-pattern syntax #70

Merged
merged 1 commit into from
Jan 6, 2023
Merged

SuccessorML or-pattern syntax #70

merged 1 commit into from
Jan 6, 2023

Conversation

shwestrick
Copy link
Owner

Progress on #47.

Command-line option -allow-or-pats true enables SuccessorML record punning syntax, for example:

val _ = 
  (* taken from MLton example: http://mlton.org/SuccessorML *)
  case t of
    A x | B x | C x => x + 1
  | D (x, _) | E (_, x) => x * 2

@shwestrick shwestrick merged commit 33fc9fd into main Jan 6, 2023
@shwestrick shwestrick deleted the allow-or-pats branch January 6, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant