logoalt Hacker News

lpilyesterday at 7:29 PM1 replyview on HN

It’s discouraged to pass around structs of functions to replicate type classes in Gleam. Instead the preference is to not type class style patterns in your projects, favouring a concrete style instead.


Replies

stuartaxelowentoday at 6:23 AM

Does that mean pass every needed function as a parameter? Or just don’t write generic functionality?

show 1 reply