From 82466a2f9507ad6991c5a275d2be97691ef58db6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 17 Aug 2025 14:28:42 -0400 Subject: Update changes --- CHANGES.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 29a69e21..2fd0c006 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,6 +8,17 @@ can prompt the user to automatically install it. - Programs can use `--version` as a CLI flag to print a Tomo program's version number and exit. +- Significant improvements to type inference to allow more expressions to be + compiled into known types in a less verbose manner. For example: + ```tomo + enum NumberOrText(Number(n:Num), SomeText(text:Text)) + func needs_number_or_text(n:NumberOrText) + >> n + func main() + needs_number_or_text(123) + needs_number_or_text(123.5) + needs_number_or_text("Hello") + ``` - Added `tomo --prefix` to print the Tomo install prefix. - Sets now support infix operations for `and`, `or`, `xor`, and `-`. - Added new `json` module for JSON parsing and encoding. -- cgit v1.2.3