Hacker News new | ask | show | jobs
by ngruhn 444 days ago
What you mean with unidiomatic? If a language has

    Maybe<T> = None | Just<T>
as a core concept then it's idiomatic by definition.
1 comments

Typescript doesn't define a Maybe<T> nor do you need it to have idiomatic statically-typed nullability.

It already has:

type value = string | null