Skip to content

weir v0.0.32

Choose a tag to compare

@github-actions github-actions released this 13 Sep 15:47
· 92 commits to main since this release
Immutable release. Only release title and notes can be modified.
0815218

Added

  • prompt — interactive input as a builtin. prompt "msg?" writes
    the message to stderr (piped stdout stays data) and reads one line
    from stdin; EOF refuses rather than inventing phantom input. And
    Self.stdin now states its law: it is a live stream read ONCE — a
    second enumeration used to silently yield empty and now raises,
    naming both repairs (bind one enumeration, or prompt per
    interaction).

Changed

  • weir fmt puts district markers on the binding line. Canonical
    layout is let x = <<< / let p = yaml patch by=name — never the
    marker alone on a continuation line. Both spellings still parse and
    run identically (district content is relative to its first line, so
    the rewrite is lossless); fmt now merges the next-line spelling up,
    outdenting a district-pipe close (|> f) with the marker, and
    fmt --check flags it. A binding line with a trailing comment keeps
    the next-line spelling.