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
I think we should rename our adt types to be the following:
(sum types)
Variant
TaggedUnion
(product types)
Tuple
Record
Currently, Sum behaves like Variant, Product behaves like Record, and Tuple behaves like Tuple.
This would mean that there is no class called Sum or Product for constructors.
Thoughts on this? It is a bit weird to currently have 'Sum' refer to the unnamed version of an ADT Sum type whereas 'Product' refer to the named version of an ADT Product type.
The text was updated successfully, but these errors were encountered:
I thought about this some more. I personally don't think we need a tagged variant of Sum types. There is no need to access an instance of a sum type except via match. Product types are different in that we have to access the fields of an instance.
I think we should rename our adt types to be the following:
(sum types)
Variant
TaggedUnion
(product types)
Tuple
Record
Currently, Sum behaves like Variant, Product behaves like Record, and Tuple behaves like Tuple.
This would mean that there is no class called Sum or Product for constructors.
Thoughts on this? It is a bit weird to currently have 'Sum' refer to the unnamed version of an ADT Sum type whereas 'Product' refer to the named version of an ADT Product type.
The text was updated successfully, but these errors were encountered: