Skip to content

v0.12.2

Choose a tag to compare

@hpopp hpopp released this 18 Jun 01:07
b4b9566

Added

  • Option / Result interop combinators Option.or_err(error), Result.ok(), Result.err(), and Result.map_err(f).

Fixed

  • I/O readiness events now reach a process whose message union includes IOReady — the handle arm receives them instead of the program hitting an unreachable trap and exiting.
  • Float32 arithmetic, comparison, and negation now work under the interpreter.
  • Binary pattern matching no longer crashes on a subject shorter than the pattern's fixed prefix (e.g. <<a::8, b::8, rest: Binary>> against <<>>); the match cleanly fails instead.
  • Fd.watch on an already-readable fd (e.g. a pipe with buffered data) no longer hangs the process — a race could drop the first readiness event.
  • Formatter: Line-wrapping elements of a list when formatted now align properly vertically.
  • Formatter: If a function signature line-wraps, always insert a blank line before the rest of the function body.
  • Formatter: Preserve comment placement in match arms.
  • Formatter: Overflowing method chains break at each .method, and a sole trailing closure hugs its parentheses.