Comment

Comment by BerislavLopac

I believe the recent idiomatic recommendation for the first two is to use the union type expression:

  1. T | None
  2. SuccessT | FailureT

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton