Skip to content

Bug fixes and minor feature additions

Pre-release
Pre-release
Compare
Choose a tag to compare
@amyjko amyjko released this 10 Feb 23:18
· 541 commits to main since this release

It's been a while since we tagged a release, but there have been enough additions that it's worth highlighting a few of them!

  • Wordplay now supports eliding expressions. In other programming languages, comment syntax is often used for this, as well as documentation, but Wordplay splits these into two different formats. Documentation goes in ` ` blocks before declarations and expressions. But to elide something, wrap it in *. For example, here's an expression elided from a list: [1 2 *3* 4 5].

  • When there's a syntax error, Wordplay will now try to make basic inferences about what you might have intended. It's not super intelligent (yet), but it will catch many basic typos and offer to fix them for you.

  • It's now possible to generate file output using Source. Just give it a name and a value, and it will serialize that value in a source file of the name of your choosing. This is a great way to use Wordplay as a basic database to store data on the web, using a project to modify it. One limitation is that only people with permissions to edit a project can run the project, since it requires write permissions. If you share a project, other creators can copy your project to use it for their own purposes.

  • There's a new Scene stream, which will take a list of outputs and animate through them, automatically managing when animations complete to move on to the next element. It's also possible to block movement between parts of a scene based on dynamic boolean values, enabling the creation of interactive stories.

  • Projects now detect many kinds of personally identifiable information and will not save online until you indicate whether the data is PII.

  • We've added text formatting controls in the output palette.

  • We improved type guard support for list and map accesses, and type inference from evaluation statements on structure creations.

  • We added coalescing on none values. For example, if a were a non-ø value, the expression a ?? 1 would evaluate to a's value. If a were ø it would evaluate to 1.

There are still lots of details to polish before we reach 1.0, but the Wordplaypen community of UW undergraduates and other contributors are making steady progress.