Exploring Gleam, a type-safe language on the BEAM!

published on 2024/06/11

The thing that always kind of put me off regarding Elixir was the dynamic typing. I’m a static typing person; it solves a LOT of common issues in my day-to-day job and provides cool benefits like:

  • Less runtime errors, since the compiler YELLS at you when something is wrong about your code structure.
  • Trust in what goes to production, since it was approved by the boss (the compiler).
  • Code with typing indications is often (not always, but still, often) clearer and easier to understand. If the documentation is incomplete or non-existent, you still have something to go by, and new engineers can start contributing faster.
  • Coding by thinking about the data structure FIRST, and then, the implementation matches my thinking process.

Christopher