DEV Community

loading...

Discussion on: Reusing record fields across types in Reason

Collapse
austindd profile image
Austin

Very nice write-up! This was indeed a pain point for me when I started programming in Reason. Today, I often use each of these techniques.

I'm sure you left out GADT's for a reason, but it might be worth mentioning that GADT's offer a solution to the "each function must handle all variants" issue with variants. Just an idea :)