The New Features of Gleam 1.5: A Statically Typed Language for Erlang Virtual Machine and JavaScript Runtimes
Gleam 1.5, the latest version of a statically typed language for the Erlang virtual machine and JavaScript runtimes, has been published, bringing new productivity improvements to developers. One of the key enhancements in this release is the upgraded compile-time error messages, making debugging and code troubleshooting easier than ever before.
Released on September 19, Gleam 1.5 is now available on GitHub. With this update, compile-time error messages for inexhaustive pattern matching have been enhanced to display unmatched values using the syntax familiar to the programmer, taking into account aliases and imports in modules. This improvement helps developers better understand error messages and makes it simpler to identify missing patterns, which can be directly copied from the error message into the source code.
Another notable feature introduced in Gleam 1.5 is the implicit todo
formatting. If developers write a use
expression without any further code in that block, the compiler now automatically inserts a todo
expression. Additionally, the Gleam code formatter will now include the todo
to provide clarity on the code structure and process.