Skip to content

v0.4.0: Raw Strings and Bug Fixes

Compare
Choose a tag to compare
@jaredoconnell jaredoconnell released this 09 Feb 18:02
· 14 commits to main since this release
f2d4efe

New Features

This release adds raw strings, which are strings encapsulated with back-tick characters

`example`

Raw strings do not escape characters, which may be useful or convenient in some cases.
Limitation: keep in mind that some characters need to be escaped, because in a raw state they break the tokenizer. For example, a new-line character could end the string early, causing a token error. Instead, use an escaped string like "\n" or '\n'

Bug fixes

This release fixes a bug where the full schema from the left is retained in an expression with the same input and output type. For example, if a string with a pattern was the type for the left half of a string concatenation +, the result would have the pattern restriction. Now, the schema output is unrestricted.

Pull Requests

Full Changelog: v0.3.0...v0.4.0