Comment by akkad33
1 month ago
Why does it need generics? There's a great blog post about how you can replace a lot of trait behaviour with just functions. Maybe something like that can be done for generics
1 month ago
Why does it need generics? There's a great blog post about how you can replace a lot of trait behaviour with just functions. Maybe something like that can be done for generics
the comment is wrong, what Gleam lacks is interfaces.
Which feels super strange, but doesn't seem to really be a problem, e.g. imagine a language where you'd write
Gleam wants you to write
edit: found an article that explained this a bit better https://mckayla.blog/posts/all-you-need-is-data-and-function...
Yes this is the article I was referring to. Gleam does not need interfaces or traits because functions can do it