• Rikudou_SageA
      link
      16 days ago

      Or just implement null as a separate type, as php does. Then you have to accept string | null (or its shorthand, ?string) if you want nulls.