Skip to content

Flux version 1.0.1

Choose a tag to compare

@kvthweatt kvthweatt released this 05 Mar 22:48
· 421 commits to main since this release

Newly added features:

  • Partial ownership implementation with ~ -> incomplete but will be resolved soon
  • Object traits with trait
  • main() with arguments
  • Locality with local to restrict a unit from leaving scope
  • Templates for functions with <T>
  • Custom infix operators (Allowing things like a === b or a <|> b)
  • Syntactic sugar for single-parameter object __init methods.
  • Standard library expansion, including memory allocators, Windows and OpenGL FFI, 2D+3D graphing library + many 3D examples
  • Comma separated function prototype definitions
  • Only types required in prototype signature parameters
  • Data restructuring with from
  • Array comprehension
  • Improved error output by adding __repr__ functions to AST nodes
  • endianof() and automatic endianness conversion on assignment

Fixes:

  • Nested functions now disallowed according to spec
  • Many regressions, too many to list
  • Multi-variable declaration not zero initializing undefined items
  • Object, struct, and enum forward declaration
  • Total refactor of AST yielding the type system

Hoping everyone enjoys the latest release! Be sure to join the Discord and share your code or compiler bugs to help improve Flux!
Official Discord