Files
rose-ash/plans
giles 851e0585cf
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s
ocaml: phase 3 'as' alias + 'when' guard in match (+6 tests, 295 total)
Pattern parser top wraps cons-pat with 'as ident' -> (:pas PAT NAME).
Match clause parser consumes optional 'when GUARD-EXPR' before -> and
emits (:case-when PAT GUARD BODY) instead of :case.

Eval: :pas matches inner pattern then binds the alias name; case-when
checks the guard after a successful match and falls through to the next
clause if the guard is false.

Or-patterns deferred — ambiguous with clause separator without
parens-only support.
2026-05-08 12:28:07 +00:00
..