Gleam 1.5 Enhances Developer Experience with Smarter Errors and Formatting
The Gleam programming language has reached version 1.5, bringing improvements to compile-time error messages, enhanced formatting features, and better development workflows. Designed for the Erlang virtual machine (BEAM) and JavaScript runtimes, Gleam is gaining traction for its type-safe approach to scalable system development.
One of the standout features of Gleam 1.5 is upgraded compile-time error messages for inexhaustive pattern matching. Previously, error messages could be difficult to interpret, especially in complex modules. Now, the compiler respects aliases and imports, displaying unmatched values in a syntax that mirrors the programmer’s original code. This change allows developers to quickly understand errors and copy missing patterns directly into their source code, streamlining debugging.
Another notable addition is implicit todo formatting. When developers leave a use
expression empty, the compiler now automatically inserts a todo
expression, making unfinished code blocks clearer. Additionally, new language server features improve auto-completion for local variables and function arguments, boosting productivity.
Gleam 1.5 also introduces silent compilation options, reducing unnecessary output when running commands like gleam test
or gleam run
. Developers who prefer a cleaner terminal view can now use the --no-print-progress
flag, and all progress messages are redirected to standard error instead of standard output, allowing for easier log management. With these updates, Gleam continues to refine the developer experience while reinforcing its position as a modern, type-safe alternative for BEAM and JavaScript ecosystems.