2 ms·
Typically, the owner of the VerifiedEmail type restricts your ability to construct new values of that type by making the constructor private and then only "bles
by tel 4y ago
Typically, the owner of the VerifiedEmail type restricts your ability to construct new values of that type by making the constructor private and then only "blessing" a small number of public constructors, each one performing that verification.
If any type could be converted to any other (compatible) type for any reason whatsoever then types would have no semantic value. But fortunately, we can control how types are constructed and used.