rhombus-prototype icon indicating copy to clipboard operation
rhombus-prototype copied to clipboard

Make an RFC about algebraic data / complete matches

Open jeapostrophe opened this issue 6 years ago • 1 comments

In the Racket1 ecosystem, there are multiple incompatible ways that people try to define datatypes with a fixed number of variants and get warnings in consuming code that does not handle all cases. One of the earliest is define-datatype from plai. There should be a standard way to do this pattern that integrates nicely with standard structs/classes.

jeapostrophe avatar Jul 26 '19 14:07 jeapostrophe

This should probably integrate with match somehow, which (I think) means match will need some way to understand when a set of match clauses is exhaustive.

jackfirth avatar Jul 28 '19 04:07 jackfirth