Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
ngruhn
11mo ago
0 comments
Share
What you mean with unidiomatic? If a language has
Maybe<T> = None | Just<T>
as a core concept then it's idiomatic by definition.
undefined | Better HN
0 comments
default
newest
oldest
hombre_fatal
11mo ago
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
j
/
k
navigate · click thread line to collapse