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
Of course, and an integer with a value of zero is also valid. There are however situation where you know that you will never use that value, and you can allow the compiler to do niche optimization if you inform it. This is what happens with the NonZero types, and of course with references, since they also cannot be null.
Its actually quite common to have domain models that do not have NIL UUIDs, since they get generated at the moment of creation and never change. Having NonZeroUuids (or NonNilUuids if you want to be specific) can have a definite impact on the memory usage of a program.
Is there a
NonZeroUuid
type, or has one been considered, similar to the otherNonZero
types, such that the following is true?The text was updated successfully, but these errors were encountered: