Link: All you need is data and functions
Traits (like those in Rust) can be really useful in a programming language. However, you can easily recreate traits in a language like Gleam by making a data type that holds the function to call.
Link: All you need is data and functions
Traits (like those in Rust) can be really useful in a programming language. However, you can easily recreate traits in a language like Gleam by making a data type that holds the function to call.