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 watchnow works on MacOS.onyx run-watchto automatically re-run the program on changes.#wasm_sectiondirective to add custom sections to the WASM binary.- Custom commands per project
- Installed in a
.onyxdirectory
- Installed in a
onyx pkg buildcan now run shell commands and multi-stage builds.Stalledcompiler hook to allow for code injection when the compiler stalls.Slice.mapSlice.map_inplaceSlice.fold1Slice.get_optIterator.fromiter.group_bycore.alloc.debugcore.os.argscore.crypto.hmaccore.crypto.keyscore.encoding.json.Value.as_entry_arraycore.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.memdebugtocore.alloc.memwatch.
Bugfixes:
- Many, many random bugs.