Release: 0.1.12
Additions:
- Ability to pipe into a method call.
x |> y->z() === y->z(x)
- Ability to pipe into a try operator.
x |> y()?
=== y(x)?`
- Ability to use
_
where#auto
is used.- This will be come the default soon and
#auto
will be removed.
- This will be come the default soon and
return #from_proc
to return all the way from the procedure.- Variant of
new
that accepts an r-value and places it in the heap. - Builtin
panic
procedure that is equivalent toassert(false, ...)
- Format parameter "a" that unpacks an
any
and formats its internal value. --generate-name-section
CLI flag
Removals:
Optional.try
as it is incompatible with new semantics of?
.
Changes:
str.as_str
is now preferred overstring.as_str
str.compare
is now preferred overstring.compare
str.to_cstr_on_stack
is now preferred overstring.to_cstr_on_stack
str.join
is now preferred overstring.join
- Implementation of
?
forOptional
andResult
to return from the enclosing procedure. - JavaScript file generated by
-r js
is no longer an ES6 module.
Bugfixes:
- Fixed WASI compilation due to syntax issue.
- Fixed WASI platform
__file_open
implementation for wasmtime. - Weird edge case when using multiple placeholder arguments in a quick procedure.