Closed t-kalinowski closed 1 week ago
What is the rationale? We had considered this early on, since classes are constructors, but we went with reified class objects instead. I'm not sure about having both.
classes are constructors
The consistency of this is enticing. Also, less typing.
One downside is that |
wouldn't dispatch to new_union()
, so usage would have to be
as_class(character) | numeric
or new_union(character, numeric)
This PR enables usage of the base constructors like
base::character
innew_class()
,new_property()
, and similar.For example: