Repository navigation
GALA 0.7.0
What's New
GALA Library Dependency Transpilation
gala build and gala run now automatically transpile GALA library dependencies. Previously, GALA deps fetched via gala mod add contained only .gala source files, causing go build to fail. The builder now transpiles all GALA deps (including transitive ones) to a workspace deps/ directory before compiling, with generated go.mod files and proper replace directives.
TreeMap Collection
Added TreeMap — a sorted key-value map backed by a balanced tree — to both collection_immutable and collection_mutable packages.
Sorted API for Collections
All ordered collection types now support a Sorted() method for element ordering. Tuple types also gained String() methods for readable output.
MkString for Collections
All collection types now support MkString(separator) for joining elements into a formatted string, similar to Scala's mkString.
Multi-File Package Support
- New
--package-filesflag enables cross-file type resolution when transpiling multi-file GALA packages gala build/gala runauto-discover sibling.galafiles in the project directory- Bazel rules (
gala_binary,gala_library,gala_go_test) automatically pass sibling files
Dot-Import Symbol Clash Warnings
The transpiler now emits warnings when dot-imported packages introduce symbols that clash with local definitions, helping catch subtle bugs early.
Bug Fixes
- Sealed types: Fixed auto-prefixing of field names when variants have same-name-different-type fields
- Sealed types: Fixed recursive sealed type fields with pointer indirection
- Sealed types: Allow same field names across variants when types match
- Match statements: Fixed nested void match statements generating invalid Go code
- Match variables: Unused match variables are now detected as compiler errors; blank assigns suppress the warning
- go_interop: Renamed
Sleep/AftertoGoSleep/GoAfterto avoid symbol clashes with dot imports