You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In place of traditional sum and product types, the plan is to only support polymorphic records and variants. The records are already in place, so that just leaves the variants.
In order to support variant elimination, we need a way to handle the cases. This could be done w/ if or switch statements, but I'd like to use babel/babel#7633 if it's not too much work.
Variant types would be declared as follow (via the Flow type AST):
In place of traditional sum and product types, the plan is to only support polymorphic records and variants. The records are already in place, so that just leaves the variants.
In order to support variant elimination, we need a way to handle the cases. This could be done w/
if
orswitch
statements, but I'd like to use babel/babel#7633 if it's not too much work.Variant types would be declared as follow (via the Flow type AST):
The text was updated successfully, but these errors were encountered: