Skip to content

fix handler syntax and add missing docs in SPEC.md#1

Merged
dalurness merged 2 commits into
dalurness:mainfrom
du-breeze:fix/spec-handler-syntax
Apr 7, 2026
Merged

fix handler syntax and add missing docs in SPEC.md#1
dalurness merged 2 commits into
dalurness:mainfrom
du-breeze:fix/spec-handler-syntax

Conversation

@du-breeze
Copy link
Copy Markdown
Contributor

The handler examples used incorrect syntax (parenthesized args with => arrows) that doesn't match the actual parser. This updates them to the real syntax (space-separated args with -> arrows and the resume keyword).

Also adds:

  • handler-arms grammar production (was referenced but never defined)
  • note about do {} blocks for multi-statement expressions
  • note about continuation (k) transfer-of-control semantics

du-breeze and others added 2 commits April 6, 2026 10:57
The handler examples used incorrect syntax (parenthesized args with =>
arrows) that doesn't match the actual parser. This updates them to the
real syntax (space-separated args with -> arrows and the resume keyword).

Also adds:
- handler-arms grammar production (was referenced but never defined)
- note about do {} blocks for multi-statement expressions
- note about continuation (k) transfer-of-control semantics

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Explicit option type
@dalurness dalurness merged commit 09aa10e into dalurness:main Apr 7, 2026
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