Conversation

Everyone used to sum types doesn't get why they are a big deal and everyone who hasn't used them doesn't get why they are a big deal
11
235
I do love how you can build sum types out of sigma types/dependent pairs: let Option (A : Type) = { tag : enum { 'some, 'none }, data : match tag { 'some => A, 'none => {}, }, }; So nifty and cool! 🤩
1
2