O'Reilly logo
  • Randy Gill thinks this is interesting:

By creating a class that enforces all invariants and business rules for the type, we move the responsibility of upholding them to that one place.


Cover of Developer Testing: Building Quality into Software


Python added type.hints in 3.5. Unfortunately, at this time, we are on 3.4.