miniblog.
← Back to all posts
Wilfred Hughes
Dec 17, 2017 at 18:10
Great post on how to use union types effectively:
https://robots.thoughtbot.com/modeling-with-union-types
(has a lovely example of modelling a deck of cards: how do you handle suits and jokers?)
Modeling with Union Types
Clean up Maybe by modeling multiple shapes of data with union types.