Skip to content

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 18 Jul 10:08
· 475 commits to main since this release
dfd0407

What's New in v0.3.4

Much repeat, very socket, wow.

A small language treat and a networking convenience: sequences you can multiply, and a way to ask a connection who's on the other end.

Language & operators

  • Sequence repetition with * — * now repeats a Str or List when the other operand is an Int, in either order: "ab" * 3 and 3 * "ab" are both "ababab", and [0] * 3 is [0, 0, 0]. A zero or negative count gives an empty sequence. List repetition is shallow — repeated nested Lists and Objects still refer to the same values. An out-of-range
    count or a too-large result raises a catchable Overflow rather than panicking.

Stdlib

  • howl.peer(sock) — returns a connection's remote endpoint as {"host": Str, "port": Int}. Calling it on a listener raises a TypeError.

Install

cargo install dogelang

Full Changelog: v0.3.3...v0.3.4