logoalt Hacker News

bcrosby95today at 4:11 PM1 replyview on HN

In my experience that's pretty rare. Most people pass around string phone numbers instead of a phonenumber class.

Java makes it a pain though, so most code ends up primitive obsessed. Other languages make it easier, but unless the language and company has a strong culture around this, they still usually end up primitive obsessed.


Replies

vips7Ltoday at 4:12 PM

    record PhoneNumber(String value) {}

Huge pain.
show 3 replies