From 97047cb95a88228ddefbc83b4c50b05eaf048272 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 29 Nov 2025 15:56:02 -0500 Subject: Update docs --- docs/enums.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'docs/enums.md') diff --git a/docs/enums.md b/docs/enums.md index 27ebdb86..85e82f36 100644 --- a/docs/enums.md +++ b/docs/enums.md @@ -34,10 +34,8 @@ an `else` block to handle all unmatched patterns. Tags can also be quickly checked using the `.TagName` field: ```tomo ->> a.AnInteger -= yes ->> a.TwoWords -= no +assert a.AnInteger != none +assert a.TwoWords == none ``` ## Reducing Boilerplate @@ -62,10 +60,8 @@ func increment(arg:ArgumentType -> ReturnType) ... ->> increment(AnInt(5)) -= AnInt(6) ->> increment(SomeText("HI")) -= Nothiing +assert increment(AnInt(5)) == AnInt(6) +assert increment(SomeText("HI")) == Nothiing ``` This lets us have overlapping tag names for different types, but smartly infer -- cgit v1.2.3