Skip to content

v3.6.0

Choose a tag to compare

@github-actions github-actions released this 16 Jun 06:41
a9bd9ff

3.6.0 (2026-06-16)

Features

  • arrays: add map, filter, reduce higher-order functions (#1795) (706ba17)
  • compiler: add tagged union enums with pattern destructuring (#1709) (2af9502)
  • fmt: add printfln, eprintf, eprintfln, sprintfln functions (#1838) (ac94620)
  • implicit enum selector .VARIANT syntax (#1850) (61fd916)
  • named function arguments (639dd40)
  • parser,typechecker: support named function arguments (#1840) (52171e1)
  • stdlib: add map, filter, reduce functions to arrays stdlib module (3ee4f3c)
  • stdlib: add printfln, eprintf, eprintfln, sprintfln to fmt stdlib module (9b2e27a)
  • struct default values (b444ee9)
  • structs: add default field values for struct declarations (#1794) (ad26dd2)
  • tagged union enums with pattern destructuring (7f66e96)
  • typechecker: add implicit enum selector .VARIANT syntax (#1850) (f154522)
  • uuid: add UUID struct type to uuid module (5b92b93)
  • uuid: add UUID struct type to uuid module (#1870) (5f0b2a7)

Bug Fixes

  • codegen: handle default params and mutable refs in cross-module using calls (#1872) (c6ce374)
  • codegen: prefix default-value bindings to prevent variable shadowing (#1840) (bf0e393)
  • codegen: strip module prefixes from struct/enum names in println output (9b0bcf4)
  • codegen: use bare param names in default-value statement expressions (a076141)
  • parser: also reject reserved type names as struct field names (#1859) (62ca179)
  • parser: enforce separate lines for all struct fields and enum variants (#1867) (f50b5c3)
  • parser: reject reserved keywords as struct field names (#1859) (db595c5)
  • parser: restrict 'for x in' to range() and add for_each shadowing warning (d3b4384)
  • stdlib: remove function name aliases csv.decode, csv.format, json.format (189b7f1)
  • tests: remove stale E3042 unit and integration tests (a076141)
  • tests: remove stale E3042 unit test (28bc4a0)
  • tests: update tests using reserved builtin/stdlib/type names (7987209)
  • typechecker: accept stdlib struct types in struct field declarations (#1870) (5ede4d1)
  • typechecker: account for default params in cross-module function calls (#1872) (cc7c6cd)
  • typechecker: add missing arg type validation for strings stdlib functions (#1875) (308108a)
  • typechecker: allow instance dispatch for all struct functions (#1848) (367ef74)
  • typechecker: block builtin and stdlib names from all identifier positions (#1859) (3fbb037)
  • typechecker: compare display names for cross-module struct/enum type matching (#1873) (3165652)
  • typechecker: prevent transitive import type leaking (bc37dd9)
  • typechecker: reject arithmetic and ordering on enum variables (#1858) (0cb5d15)
  • typechecker: reject comparison of different enum types (#1865) (f64aa67)
  • typechecker: reject enum constants passed to mutable parameters (#1844) (0e7f608)
  • typechecker: reject mixed enum types in array literals (#1862) (0838368)
  • typechecker: reject multi-return destructuring with too few variables (#1860) (afbad4c)
  • typechecker: reject return of wrong enum type (#1864) (3f5fb02)
  • typechecker: reject string() on array, map, struct, pointer with E3043 (#1853, #1854) (f4146fa)
  • typechecker: reject string() on string values with E3043 (#1852) (f3d42ee)
  • typechecker: reject wrong enum type in map literal keys and values (#1863) (1b6d845)
  • typechecker: skip early resolve for implicit enum args, propagate array-of-enum expected_type (#1850) (acc0857)
  • typechecker: strip module prefix from struct name in all error messages (#1866) (25aff14)
  • typechecker: strip module prefixes from user-facing error messages (cfeffde)
  • typechecker: use type_display_name in struct function arg errors (#1866) (8c4af9a)
  • typechecker: validate mutable params in instance dispatch path (#1845) (fb98a9c)
  • typechecker: warn when function parameter shadows enum variant (#1861) (26f8e1d)