Skip to content

N v1.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Jul 01:40
· 177 commits to main since this release
32f7afc

What Changed:

Additions

  • Added FileIO.{writeBytes, appendBytes, readBytes, getFiles} and SystemIO.run
  • FileIO.write and FileIO.append use utf-8
  • Added request.{delete, head, options, patch, put, createServer}, times.getTime, websocket.{createServer, close, user}
  • Added assert, which allows for unit tests
  • Added a stack trace for runtime errors
  • Added --newest, --version, --update
  • Added toFloat, printWithEnd, subsection, parallel, intoModule, getUnitTestResults
  • Added module type
  • Added >>, <<, in, value access operators
  • Added .. operator for records and lists
  • Added hex, binary, octal literals
  • Added casting for uninitialized type variables
  • Added type checking tests
  • Added continue, break, and while
  • Support Unicode escape sequences, \v, \0, \f, and \b for char and str literals
  • Support else if

Changes

  • json.stringify turns NaN and Infinities into null
  • Formally removed type
  • Allow trailing comma in function calls, type variable declarations, tuple literals, and type variables
  • Allow leading pipe in enum declarations
  • Allow parentheses in type annotations
  • match is no longer allowed as a variable name

Fixes

  • FileIO.read will no longer throw runtime exceptions
  • intCode gives U+FFFD for invalid code points
  • Syntax tests also read as utf-8 now
  • Added match expressions
  • Removed one-item tuples