Open tumblerer opened 11 years ago
For compatibility with the existing code base should the PhoneNumber class have a constructor that takes the original phone number strings and parses them? (That may be quite complicated though, depending on how standardized phone numbers are worldwide/within the project.)
EDIT: Ignore me, you've already done this.
Currently there are a crapload of strings everywhere that are phone numbers, the values of which are often matched against each other. Creating a phone number class could make mistakes less likely, expand potential future functionality (encapsulating region and ensuring number validity, as referenced in #6 ).