Skip to content

Add support for when guard expressions#192

Draft
hhugo wants to merge 1 commit intoocaml-community:masterfrom
hhugo:when-guard
Draft

Add support for when guard expressions#192
hhugo wants to merge 1 commit intoocaml-community:masterfrom
hhugo:when-guard

Conversation

@hhugo
Copy link
Copy Markdown
Collaborator

@hhugo hhugo commented Mar 27, 2026

Rules can now include when guards that are evaluated at each DFA accepting state. When a guard fails, the next matching rule is tried in priority order. Guards can reference as-bound variables.

Rules can now include `when` guards that are evaluated at each DFA
accepting state. When a guard fails, the next matching rule is tried in
priority order. Guards can reference `as`-bound variables.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant