Gleam in the machine: phantom types and the builder pattern.
- Track: Erlang, Elixir, Gleam and Friends devroom
- Room: K.4.601
- Day: Saturday
- Start: 12:05
- End: 12:25
- Video only: k4601
- Chat: Join the conversation!
Discussions about types often begin and end with the assertion that they make our programs safer, but how to get the most out of types can be a bit of a mystery. With the development of a type system for Elixir, multiple explorations for Erlang, and the steady growth of Gleam there is increasing demand for practical discussions on how types can be used to write better programs.
This talk explores one such technique, known as "phantom types". We will learn what phantom types are, why they can be useful, and see some examples of Gleam packages employing them in the wild to achieve safer APIs.
Speakers
Hayleigh Thompson |