Smart Constructor - Graph View A function that is the only way to create a value of a given type and that checks the type's rules, so every value that exists is guaranteed to be valid. View concept details Related ConceptsParse, Don't Validate Newtype Pattern Value Object Primitive Obsession Make Illegal States Unrepresentable Option Type Design by Contract Secure by Design Domain-Driven Design Correct by Construction Fail Fast ← Back to full graph