Honestly, I learn the most about Rust details through tweets like these. It's like a slow drip of information that will keep me from making mistakes later in the future. I want the Rustonomicon in daily-"Did You Know"-tear-off-calendar form.https://twitter.com/myrrlyn/status/1153369298779430914 …
-
-
It's a write-once pointer to an uninitialized T; it (if it existed) moves MaybeUninit from being a property of the slot to a property of the access, and enables placement-new Unfortunately tyck doesn't have linear types or the ability to adequately uninitialized slots
-
The closest Rust has is currently let val: T; // uninit slot if cond { val = T::one(); } else { val = T::two(); } where "val =" are deferred initialization writes, same as &uninit would allow.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.