Hello everyone! The latest version of Gleam is out, v0.13. I’ve written a blog post detailing what’s new in this release here:
I hope you enjoy it, and I’m looking forward to hearing what you think. Thanks!
Hello everyone! The latest version of Gleam is out, v0.13. I’ve written a blog post detailing what’s new in this release here:
I hope you enjoy it, and I’m looking forward to hearing what you think. Thanks!
Wow! Those error messages are awesome. Good job.
Greg did an excellent job!
Indeed! Looking at his PR made me put on my todo-list to rewrite Elixir’s parser at some point.
One of the things that I would love to see how Gleam would tackle with its own parser, just so I can get inspired by/copy it, is intelisense. The thing about intelisense is that you are often working on imcomplete code. For example, imagine you wrote:
def foo do
a +
end
And the cursor is right after the plus. Or, similarly:
def foo do
Foo.
end
The intellisense needs to understand or complete the code in order to understand its surrounds (for example, variables defined in the same function) and so on. I think having a custom parser helps with that but I am not sure if that’s true in practice!
EDIT: and congrats on the release!
I’ve not looked much at how LSP works but I think you’re right. With this customer parser lots of little tooling and error message niceties that seemed difficult have become much easier. I should have done this from the start!
Thank you!
Pushed a 0.13.2 docker release