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