Skip to content

v0.4.0

Latest

Choose a tag to compare

@alinalihassan alinalihassan released this 31 Jan 14:22
· 83 commits to master since this release
b1db48b

The main focus of this release was to fix as many issues as possible, and as a result, most updates are subtle, but there are some major new features as well.

Major language features

  • Implemented Tuples (immutable lists)
  • Implemented Classes, methods, constructors
  • Implemented defer keyword
  • Implemented mathematical inf
  • Implemented Anonymous Functions
  • Implemented Enums
  • Switch statements do not fallthrough by default anymore (similar to Swift)
  • List/Tuple types are generic (elements can have any type)

Minor updates

  • Empty lists now can be declared
  • Typechecker now catches uninitialized structs/classes
  • Fixed input function
  • Fixed type declaration not working for lists/tuples
  • Fixed not being able to use user-defined types as parameter/return types
  • Fixed structs not accepting default parameters
  • Many other fixes

Miscellaneous

  • Added many more unittests
  • Updated docs for structs, classes, enums, types, as/is operators, etc.