Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pornel
on Feb 4, 2021
|
parent
|
context
|
favorite
| on:
Datatype99: C99 with Sum Types, v0.1.0
Tagged unions built-in into the language can have layout optimizations, e.g. in Rust sizeof(Option<&i32>) == sizeof(&i32), because Rust knows it can repurpose NULL as the None value.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: