Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
epolanski
on May 9, 2024
|
parent
|
context
|
favorite
| on:
Algebraic Data Types for C99
`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
on May 10, 2024
[–]
... 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?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
It's like saying `string | "foo"` it is simply `string` due to subtyping.