Additions:
- Unwrap operator,
x!
.- Similar to try operator (
x?
), but panics if value is not present.
- Similar to try operator (
- "Field update" syntax. A shorthand to change a field of a structure.
.{ ..old_value, field = new_value }
onyx watch
now works on MacOS.onyx run-watch
to automatically re-run the program on changes.#wasm_section
directive to add custom sections to the WASM binary.- Custom commands per project
- Installed in a
.onyx
directory
- Installed in a
onyx pkg build
can now run shell commands and multi-stage builds.Stalled
compiler hook to allow for code injection when the compiler stalls.Slice.map
Slice.map_inplace
Slice.fold1
Slice.get_opt
Iterator.from
iter.group_by
core.alloc.debug
core.os.args
core.crypto.hmac
core.crypto.keys
core.encoding.json.Value.as_entry_array
core.encoding.base64 { encode_url, decode_url }
core.encoding.xml
Removals:
Changes:
- Capture/closure syntax is now
(params) use (captures) ...
.(x: i32) use (variable) -> str { ... }
(x) use (variable) => { ... }
&&
and||
now short-circuit.- Fixed-sized arrays (
[N] T
) are now passed by value. - The size of tag field for unions is now dependent on the number of variants.
- Parsing structs no longer sometimes needs
#type
. - Renamed
core.alloc.memdebug
tocore.alloc.memwatch
.
Bugfixes:
- Many, many random bugs.