2 ms·
`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.
by epolanski 3y ago
`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.
- hexane360 3y 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?