Gleam doesn't compile to Erlang source anymore
66 points by novedevo
66 points by novedevo
Am I reading it correctly that Gleam to erlang abstract form is quicker than erlang to erlang abstract form?
Gleam is a cute and well-designed language, which I'd like to use if I had more time and a good use case.
Unrelated question: How do gleam users feel about use expressions? https://tour.gleam.run/advanced-features/use/
They're popular, but they the most common point for folks to get confused when learning Gleam, if they have any trouble.
Echoing lpil, it takes a while for use to click, but when it does, it really helps make code more readable. I would go so far as to call it one of the most useful parts of the language.
Do you feel it encourages continuation-style APIs, even for things that could be expressed without them? (Kinda like Haskell's do notation encourages monadic APIs)
Generally no. I review quite a lot of the published packages and I can only think of one occasion I have seen this.
The syntax that we have the most of an over-use problems with is the pipe operator. Some folks to learn to use it, get really into it, and try to write all code using it instead of assigning variables.