You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's impossible to guarantee that all value-objects will be initialized, for instance, new CustomerId[10].
We can pick up a lot of situations where an attempt is made to default a value-object, but for those where we can't, we need a flag in the type that is checked at runtime and throws an exception if the value-object's value is used.
The text was updated successfully, but these errors were encountered:
It's impossible to guarantee that all value-objects will be initialized, for instance,
new CustomerId[10]
.We can pick up a lot of situations where an attempt is made to default a value-object, but for those where we can't, we need a flag in the type that is checked at runtime and throws an exception if the value-object's value is used.
The text was updated successfully, but these errors were encountered: