Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Releases: alinalihassan/pyLesma

v0.4.0

31 Jan 14:22
b1db48b
Compare
Choose a tag to compare

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.

v0.3.0

06 Jan 17:20
Compare
Choose a tag to compare

Major updates

  • Functions now can be used as parameters
  • Implemented Anonymous functions
  • The switch statement is now "no implicit fallthrough" by default
  • Defer keyword to postpone actions at the end of the scope (such as closing a file, etc)
  • Implemented Tuples