Hacker News new | past | comments | ask | show | jobs | submit login

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: