3 ms·
> The object is already constructed in a valid state. But that's the entire value proposition of do-not-allow-construction-of-invalid-state! If a User is actu
by mrkeen 2y ago
> The object is already constructed in a valid state.
But that's the entire value proposition of do-not-allow-construction-of-invalid-state!
If a User is actually a User, then you can say "the object is already constructed in a valid state".
If you decide to be 'less dogmatic' and instead construct Users-which-may-or-may-not-be-users-just-throw-an-ex-if-theyre-no-good, then you cannot say that the object is already constructed in a valid state.
- vips7L 2y agoI genuinely don't know what you're trying to say here. Perhaps you can show me in code.