When it’s a string.
How many systems have you worked on where you pass strings/integers etc about for email addresses and passwords among other things.
Edit: I knew there was a real term for this, which Rob has reminded me - Business Primitives
What’s wrong with this?
You’re adding a lot more work to any methods that deal with email addresses. If your methods accept a string, even if the parameter name is “emailAddress”, what is stopping me from passing a value that doesn’t represent a valid address. The answer nothing. This puts the responsibility of validating the input on the called method, likely raising...