Skip to content

jactl 2.0.0

Compare
Choose a tag to compare
@jaccomoc jaccomoc released this 10 Jan 07:32
· 78 commits to main since this release

Enhancements

#46 Added switch expressions with pattern matching and destructuring
#51 Added support for constants using new const keyword and added import static functionality
#53 do blocks now return value of last expression/statement rather than true for consistency
#54 do/until loops added to the language
#55 Lists now support a groupBy() method that produces map of elements grouped by same key
#56 New transpose() method for lists to perform matrix transpose operation

Bug Fixes

#48 subList(0,0) now returns empty list and substring(0,0) returns empty string
#49 Regex pattern starting with = was being treated as a string instead of a regex pattern
#50 Invoking a method on a primitive variable declared in an outerscope caused JVM to report validation error
#52 Byte values are now strictly 0-255 (negative byte values map automatically to 128-255)

Breaking Changes

  • New keywords:
    • const, until, switch, default
  • Treatment of byte values: byte value results are now never negative
  • do expressions blocks return value of last expression/statement instead of always returning true
  • ++ and -- now generate an error if applied to a constant literal value or expression (e.g. ++1 is no longer valid)