From e2617199636499c38a4e6d22266cfe281c5b1a6f Mon Sep 17 00:00:00 2001 From: Ryan Hunt Date: Thu, 22 Oct 2026 16:19:30 -0500 Subject: [PATCH 01/14] Add union types --- design/mvp/Binary.md | 10 ++-- design/mvp/CanonicalABI.md | 1 + design/mvp/Text.md | 64 ++++++++++++++++++++----- design/mvp/WIT.md | 42 +++++++++++++++- design/mvp/canonical-abi/definitions.py | 5 ++ design/mvp/canonical-abi/run_tests.py | 3 ++ 6 files changed, 108 insertions(+), 17 deletions(-) diff --git a/design/mvp/Binary.md b/design/mvp/Binary.md index e5c0e1cf..5f3b7f80 100644 --- a/design/mvp/Binary.md +++ b/design/mvp/Binary.md @@ -214,6 +214,7 @@ defvaltype ::= pvt: => pvt | 0x66 t?:? => (stream t?) πŸ”€ | 0x65 t?:? => (future t?) πŸ”€ | 0x63 k: v: => (map k v) (if k is in ) πŸ—ΊοΈ + | 0x62 lt*:vec() => (union (case lt)+) (if |lt*| > 0) πŸ’ labelvaltype ::= l: t: => l t case ::= l: t?:? 0x00 => (case l t?) labellit ::= len: l: