sum-types
: What should the private
keyword do for constructors?
#1610
Labels
sum-types
: What should the private
keyword do for constructors?
#1610
On the
sum-types
branch (#1602), it is possible to annotate a constructor asprivate
. Currently, this does nothing, andprivate
constructors are exported anyway. It's unclear if we actually want the ability to mark enum constructors asprivate
however—what does it mean to only export some of an enum's constructors?We should come to a conclusion about what design we want and either (1) implement the feature, or (2) remove it.
The text was updated successfully, but these errors were encountered: