Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
epolanski
1y ago
0 comments
Share
`T | null` is equivalent to T. You can assign null to `T`>
It's like saying `string | "foo"` it is simply `string` due to subtyping.
0 comments
default
newest
oldest
hexane360
1y ago
... no? Unless you're referring to null as a bottom type, then that doesn't hold. Are you describing some property of a specific language?
j
/
k
navigate · click thread line to collapse