Comment

Comment by pillmillipedes

if a user with/without phone number are equally valid states to be then types won't help you much. I think it's more about writing

  class User{phone: ?PhoneNumber}
over

  class User{phone: ?string}.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton