gluon v0.5.0 Release Notes

Release Date: 2017-07-01 // almost 7 years ago
  • Highlights for 0.5 include code formatting of gluon code and automatic marshalling between Rust and Gluon through serde. Formatting can be done either via the gluon fmt sub-command or with ๐Ÿ”Œ directly in Visual Studio Code with the [language-server plugin][].

    ๐Ÿ‘ Type errors should now be formatted much better and have more precise types.

    ๐Ÿ”Œ [language-server plugin]:https://github.com/gluon-lang/gluon_language-server

    ๐Ÿ› Bug Fixes

    • Separate all errors with a newline (86f159fd)
    • check:
      • Indent types in error messages correctly (13a7f52c)
      • Report clearer errors when aliases do not match (2ea68654)
      • Don't leak inference variables out to type errors (ef1d584b, closes #292)
    • ๐Ÿ“œ parser: Give correct location information for unindentation errors (30541c1e)
    • pretty: Always format empty records as unit types (03f07f16)
    • vm:
      • Only allocate enough memory for a ValueArray when appending arrays (abe7a4b2)
      • Fix the debug printing of GcStr and ValueArray (5566b518)

    ๐Ÿ”‹ Features

    • Add a fmt sub-command to the gluon executable (b9c6ea6c)
    • Bump version of pretty (29808fce)
    • base:
      • Display applied and function types better during multi line splits (3fff91eb)
      • Add basic pretty printing of expressions (68b3bb97)
    • check: Auto complete pattern matches (712dc412)
    • ๐Ÿ“œ parser:
      • Allow partial parsing of alternatives when only the | exists (cbe698f7)
      • Allow partial parsing when patterns are missing (e3285428)
      • (Re-)add negative numbers to the language (65dfc1ac)
    • vm:
      • Merge the Tag and Data variants of ValueRef (ed7330d1)
      • Add deserialization from gluon values (6b98e29c)
      • Allow automatic marshalling from Rust to gluon objects via serde (8318e341)