ReScript @rescript-lang.org · Nov 12

Another new feature in v12 - variant type spreads in pattern matching! This allows you to refine variant types and easily match on a whole subset type without having to enumerate it. This was always possible with polyvariants, and now also with regular variants.

14 likes 0 replies

?