PurePy has a data type called NoneType (not sure if you can actually name it) with a single constructor, None. That's all fine and dandy but I think Fluid will be quite restrictive about this compared to Python, at least initially: in Python you can have a value whose (effective) type is NoneType | SomeOtherDataClass and still pattern-match on the value; not sure how we can support that easily in Fluid.
PurePy has a data type called
NoneType(not sure if you can actually name it) with a single constructor,None. That's all fine and dandy but I think Fluid will be quite restrictive about this compared to Python, at least initially: in Python you can have a value whose (effective) type isNoneType | SomeOtherDataClassand still pattern-match on the value; not sure how we can support that easily in Fluid.UnittoNoneType