Skip to content

ArkScript v4.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Feb 19:05
Immutable release. Only release title and notes can be modified.
v4.2.0
9cb43e0

Breaking changes

  • assert is no longer an instruction but a builtin
  • when comparing values of different types using <, >, <=, >= and =, the result will always be false (it used to rely on the type index)

Added

  • added BREAKPOINT instruction
  • breakpoints can be placed using (breakpoint) and (breakpoint condition)
  • added a debugger that can be triggered on error or on breakpoint by passing -fdebugger to the CLI (see the docs for the debugger)
  • diagnostics can now be generated when using State.doString, using Diagnostics::generateWithCode (as the original code must be passed to the diagnostics generator)
  • empty? can now take a dict, and returns true if it has no key/value pairs
  • len can now work on dictionaries, counting the number of keys

Changed

  • changed the runpath of arkscript to look for libArkReactor under its (arkscript's) directory, {arkscript}/bin, {arkscript}/lib, and {arkscript}/../lib
  • and and or require valid expressions, so (or 1 (mut x 3)) is no longer valid code, as (mut x 3) doesn't return a value
  • (not (dict "a" 2)) now returns false, as not checks if the dict is empty