Skip to content

Add pattern-matching example in playground - #11

Merged
Y-Nak merged 2 commits into
new-syntaxfrom
add-pattern-matching-example
Aug 19, 2026
Merged

Add pattern-matching example in playground#11
Y-Nak merged 2 commits into
new-syntaxfrom
add-pattern-matching-example

Conversation

@czepluch

@czepluch czepluch commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Adds a pattern-matching/ADT example to the playground: an escrow whose lifecycle is an enum stored in a contract field, driven by match. It demonstrates payload-carrying constructors, binder and wildcard patterns, the default arm, and multi-statement arm bodies.

Replaces #10, which was opened from a fork before I had write access.

@Y-Nak
Y-Nak merged commit a7efebd into new-syntax Aug 19, 2026
24 checks passed
@Y-Nak
Y-Nak deleted the add-pattern-matching-example branch August 20, 2026 07:14
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.

2 participants