Skip to content

Preview 5 – Build 658

Pre-release
Pre-release

Choose a tag to compare

@jgh07 jgh07 released this 13 Feb 20:39
· 480 commits to main since this release

The fifth preview release of the compiler.

Changes and new features

CLI

  • Improved dc watch command with more options

Project system

  • Import attribute

Standard library

  • Type aliases int128, uint128, float16, Vector[T] and Array[T, 'D]
  • Operators <=> (three-way comparison), ==> (implication), !& (NAND) and !| (NOR)
  • assert function
  • Reintroduction of Process module
  • utf8 string processor

Language features

  • New type alias system
  • Events
  • $lock statement
  • Full support for attributes with arguments; Attribute targets
  • Inline union types of form (A | B)
  • Support for referring to tuple types using (A, B) syntax
  • String processors
  • Repetition operator * on strings and lists
  • Allow mixing of top-level code and type declarations
  • static top-level functions
  • List initialization from range (e.g. [1..10])