July 9th, 2024

Gleam v1.3.0 – Auto-imports and tolerant expressions

Gleam v1.3.0 update includes auto-imports, tolerant expressions, enhanced completions, import cycles diagnostics, syntax warnings, arithmetic support, and JavaScript bundler hints. Contributors improved functionality and user experience significantly.

Read original articleLink Icon
Gleam v1.3.0 – Auto-imports and tolerant expressions

Gleam v1.3.0 has been released, introducing new features such as auto-imports and tolerant expressions. The language server now suggests completions for values and types from any module in the project, automatically adding import statements if needed. Tolerant expressions allow the server to work with and understand code even with errors that would typically halt the compiler. Additionally, completion improvements ensure consistent results across different text editors. Import cycles diagnostics have been enhanced, and helpful hidden hovering now displays details of record fields when pattern matching. Syntax warnings and error improvements have been implemented, including warnings for redundant function captures and more informative error messages. Gleam now supports arithmetic operations on floats and ints in case clause guards. Lastly, hints for JavaScript bundlers have been added to aid in dead code elimination. Various contributors have played a significant role in these updates, enhancing the functionality and user experience of Gleam.

Link Icon 5 comments
By @ducdetronquito - 3 months
Congrats for the release !

It’s really great to see some strong contributors alongside Louis :)

I'm only learning Gleam right now but the feature set already feels small, very cohesive and well thought.

Pipelines, function capture, use expression, pattern matching: I wish I could work with this in Python at work :')

By @Jeff_Brown - 3 months
I love just the ideas in the Erlang system. I've tried to break into it a few times, including once or twice with Gleam, and kept getting blocked by terminology I didn't know and couldn't look up, or instructions that didn't have the intended effect. I became convinced I needed a guide who already knows the system.

That was a few years ago, and looking back I must have been wrong -- but I tried pretty hard. (I successfully learned my way around Haskell and NixOS, which are at least roughly as esoteric, but I thought much better documented. And NicOS isn't even that well documented )

By @giancarlostoro - 3 months
Gleam is an interesting gem I have not tried yet but its basically written in Rust and compiles for the BEAM VM and has types, so you get a Rustish looking syntax that builds to BEAM and to my naive eye looks like its using a lot of their libraries and looks really nice.

Its had a lot of polish since the last time I ever looked at it, might have to experiment with it. :)

By @guims767 - 3 months
Congrats to the team for this release packed with great features!