Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ngruhn
1y ago
0 comments
Save
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
hombre_fatal
1y 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