Rhai v0.20.3 Release Notes

  • ๐Ÿ‘ This version adds support to index into an integer number, treating it as a bit-field.

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fixed incorrect optimization regarding chain-indexing with non-numeric index.
    • Variable values are checked for over-sized violations after assignments and setters.

    ๐Ÿ’ฅ Breaking changes

    • 0๏ธโƒฃ To keep the API consistent, strings are no longer iterable by default. Use the chars method to iterate through the characters in a string.
    • Dynamic::take_string and Dynamic::take_immutable_string are renamed to Dynamic::as_string and Dynamic::as_immutable_string respectively.

    ๐Ÿ†• New features

    • ๐Ÿ†• New syntax for for statement to include counter variable.
    • An integer value can now be indexed to get/set a single bit.
    • The bits method of an integer can be used to iterate through its bits.
    • ๐Ÿ†• New $bool$, $int$, $float$ and $string$ expression types for custom syntax.
    • New methods to_hex, to_octal and to_binary for integer numbers.
    • New methods to_upper, to_lower, make_upper, make_lower for strings/characters.