Files
rose-ash/lib/ocaml
giles c7d8b7dd62
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 27s
ocaml: phase 2+3 'when' guard in try/with (+3 tests, 467 total)
parse-try now consumes optional 'when GUARD-EXPR' before -> and emits
(:case-when PAT GUARD BODY). Eval try clause loop dispatches on case /
case-when and falls through on guard false — same semantics as match.

Examples:
  try raise (E 5) with | E n when n > 0 -> n | _ -> 0   = 5
  try raise (E (-3)) with | E n when n > 0 -> n | _ -> 0 = 0
  try raise (E 5) with | E n when n > 100 -> n | E n -> n + 1000  = 1005
2026-05-08 20:36:02 +00:00
..