• Tue. Sep 24th, 2024

Gleam language reaches 1.5 release

Byadmin

Sep 24, 2024



Gleam 1.5, the latest version of a statically typed language for the Erlang virtual machine and JavaScript runtimes, has been published, with productivity improvements such as upgraded compile-time error messages.

Launched September 19, Gleam 1.5 can be accessed from GitHub. With this release, compile-time error messages for inexhaustive pattern matching have been upgraded to show the unmatched values using the syntax the programmer would use in their code, respecting aliases and imports in modules. The change makes it easier to understand an error message. Missing patterns can be copied from the error directly into the source code.  

Also with Gleam 1.5, implicit todo formatting is featured.  If developers write a use expression without any more code in that block, the compiler implicitly inserts a todo expression. With this release, the Gleam code formatter will insert the todo to make it clearer what is happening.



Source link