diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-17 14:28:42 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-17 14:28:42 -0400 |
| commit | 82466a2f9507ad6991c5a275d2be97691ef58db6 (patch) | |
| tree | d4ceb7fc61b5a5b0343a5bf9e00646e75737840a | |
| parent | 724c0fcf9e227babe540dea175ce20438a466b88 (diff) | |
Update changes
| -rw-r--r-- | CHANGES.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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. |
