Closed jgoux closed 8 years ago
Hello :smile_cat:
is there a reason why the constructors for a Record type are named <name>Of ?
<name>Of
I find it quite verbose, would it be possible to use simply of ? Like Person.of({ name: "Hagrid" })
of
Person.of({ name: "Hagrid" })
It would be closer to fantasyland notation too.
Thanks for this awesome lib ! :sparkles:
After some thoughts, using simply of is impossible because Type creates tagged type by default!
Type
Sorry. :sweat_smile:
Hello :smile_cat:
is there a reason why the constructors for a Record type are named
<name>Of
?I find it quite verbose, would it be possible to use simply
of
? LikePerson.of({ name: "Hagrid" })
It would be closer to fantasyland notation too.
Thanks for this awesome lib ! :sparkles: