Skip to content

Release: 0.1.12

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 20 May 01:59
53d068b

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.
  • 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 to assert(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 over string.as_str
  • str.compare is now preferred over string.compare
  • str.to_cstr_on_stack is now preferred over string.to_cstr_on_stack
  • str.join is now preferred over string.join
  • Implementation of ? for Optional and Result 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.