Release 0.1.10
·
1 commit
to ad6fa7bcc71bde500131e947adecd110e1044d0b
since this release
Additions:
- JavaScript interop
core.jspackage for JS FFI.#jsdirective to build a JavaScript file during compilation.
- Implicit injections
#injectis no longer required in some cases
- Named return values
- Official builds for Linux AARCH64
SliceandArraystructures for placing methods on slices and dynamic arrays.- Range type improvements
range64type..=operator that is a range, with an inclusive upper end.
- New alternate error format that may become the default in the future.
- Use
--error-format v2or set environment variableONYX_ERROR_FORMATto bev2.
- Use
- Auto-disposing locals (experimental)
use x := ...
- Core library functions
- New process spawning API with builder pattern (
os.command) sync.MutexGuardsync.Channelhash.sha1net.dialnet.resolve- integer constants
i8.MIN,i64.MAX, etc.
- New process spawning API with builder pattern (
Removals:
os.with_file
Changes:
- Revamped CLI
- Shorthand commands (r for run, b for build, etc.)
- Improved appearance
- Better help pages
- Note: flags must now appear before all files
- Better error messages for common issues
Arrayshould be preferred overcore.arraySliceshould be preferred overcore.slicestrshould be preferred overcore.string
Bugfixes:
- Fixed compiler crash when trying to iterate over something that is not iterable.
- Fixed wrong implementation of futexes on MacOS.
- Fixed implementation of
platform.__time()
Contributors:
- @Syuparn (1 pull request)