ZPE 1.12.7 brought many of the biggest updates to ZPE in a long time including bundling a YASS-based standard library that is compiled on start up, changing the way imports work and breakpoints.
Now ZPE 1.12.8 is just about ready for launch and it brings many big new features and changes.
The new features of ZPE 1.12.8 are:
- Namespaces have finally been added to ZPE
- Much better error handling
- The new -h bytes will list all byte codes available in ZPE and their representation, great for development
- New Javadoc based documentation is being added, a considerable amount has already been added to ZPE 1.12.8.
- Return types on functions can now be stated with
->
as well as:
- Several new exceptions have been added to ZPE (this version is known as the 'exception version' as a result)
- Short anonymous functions () => {} now support typed parameters.
- Static functions and static function calls are now available too (they will soon support namespaces too)
The big changes in ZPE 1.12.8 are:
- The cache values file is now stored in the ZPE folder, rather than where ZPE is executed. It makes much more sense this way.
- ZPE introduced a new ZPERandomizer engine in July
- Log files have been changed so they no longer take up too much space on disk and they rotate more efficiently
- ZPE Online files are now compiled when they download to ZPE
- The JSON parser now supports the null value
- Regexps have been improved to reduce the time they require to compile and test
- The main introduction is more detailed than ever before, making it easier to find out about a ZAC than before
- std_out prints to the same line
match
statements now only support one else statement and it must be the last condition of the statement
There have been several bug fixes too:
- ZPE no longer keeps asking to install the standard library if you said no
- Shell return values are now ZPEStrings making them comply with the ZPE data type list
- The --man option stated that all functions return an object on all instances due to a bug, this has been fixed.
- The rate and voice parameters in the speak command were not optional and this has now been fixed (as has the manual heading)
There are two breaking changes which include the new syntax of the match statement has now changed and the copyof keyword has been dropped. Both of these lead to YASS 24.7. Make sure you read the changelog to understand what it is that has changed.