Jun 2025 (v0.7.1)
Mochi v0.7.1 expands map support, adds new builtins and improves iteration inference across compilers.
Map Enhancements
- Empty maps can be initialized directly
map[key] = valueassigns entriesinchecks membership and keys may be integers
New Builtins
str,countandavgavailable in Go, Python and TypeScript
Compiler Improvements
- Index assignment works for lists
- Map iteration is inferred automatically
- TypeScript inlines
lenfor typed arrays and strings