logo
  • Search
  • Reddit Posts 🔥
  • Archive
  • GitHub

Why can't rust optimize the size of Option<Option<T>>?

55 points kredditacc96 2024-10-27 03:10:02
View on Reddit ↗

https:\/\/play.rust-lang.org\/?version=stable&mode=release&edition=2021&gist=5b52d96b722bbb8741b937839b8f5d62

Is this the fundamental limitation of the type system or is it just a missed optimization opportunity?

© 2025 Query.rs, built by Folyd with ❤️❤️, see about page to learn more · meiguo.app · aiberm.com