Top all-time · #7927
Erika Rowland
Personal blog · erikarow.land/notesprogramming
Erika Rowland writes Combined, a personal blog at erikarow.land about programming. Since 2023, 10 different Hacker News readers have linked it 13 times, most often “Using Use in Gleam”. The last post was in 2024, but the archive is still widely read.
Too few sampled comments (5) to say how often HN recommends it.?
Why HN links it
Notes on the Gleam language, mainly its `use` expression and Erlang interop. HN readers link her use-gleam note when discussing or defending `use`, and one commenter calls it a great article.
Summarised by Claude from a sample of 5 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Using Use in Gleam7 people · 7 mentions · first linked 2024-07-08
- My Favourite Gleam Feature3 people · 3 mentions · first linked 2023-11-14
What Hacker News says?
They've added https://hexdocs.pm/file_streams/0.6.0/ for this purpose. There's a bit of ceremony but similar to how you can interface with Java libraries from Clojure you can pull in Erlang when Gleam isn't enough. You can do some code shortening with use, https://erikarow.land/notes/using-use-gleam , but it will likely always be rather chatty and won't support metaprogramming: https://lpil.uk/blog/how-to-add-metapr…
Comment linking /notes/using-use-gleam
on “Why Clojure?”Submitted My Favourite Gleam Feature as a story · 70 points
HN discussionThere's a great article by Erika on use, definitely recommended :) https://erikarow.land/notes/using-use-gleam
Comment linking /notes/using-use-gleam
on “Gleam Is Pragmatic”Submitted Using Use in Gleam as a story · 18 points
HN discussionCan you explain why you don't like `use` but you would like an `await` keyword? As far as I can see, `use` is a superset of the `await` transformation that just happens to work in a lot more situations. It circumvents callback hell when you're working on the Javascript target [1] but also de-indents lots of other code like handling results [2]. [1] https://github.com/gleam-lang/javascript [2] https://erikarow.land/n…
Comment linking /notes/using-use-gleam
on “Gleam, Coming from Erlang”Submitted My Favorite Gleam Feature as a story · 11 points
HN discussionIt's not just about wrapping. use-expressions, result.try and result.map eliminate the boilerplate of checking for errors entirely: https://erikarow.land/notes/using-use-gleam
Comment linking /notes/using-use-gleam
on “Gleam v1.12”Submitted Bash Completion (2023) as a story · 8 points
HN discussionGleam is beautifully designed, but I don't really understand the concept of "use". I've read every article and documentation I could see about it, but it still doesn't "click". Perhaps using another keyword (instead of "use") would work better? In general, I find "use" a big deviation from Gleam's philosophy. Everything else in the language is well-defined and serves a specific purpose. "use", however, serves severa…
Comment linking /notes/using-use-gleam
on “Enhancing Your Elixir Codebase with Gleam”Submitted My Favorite Gleam Feature as a story · 3 points
HN discussionSubmitted Using Use in Gleam as a story · 2 points
HN discussionSubmitted Things I like about Gleam's Syntax as a story · 2 points
HN discussionSubmitted When is an Erlang process a shell? as a story · 1 points
HN discussion