TWiR quote of the week

Nice blog. I think it is fair to say Rust’s DSTs are not completely finished yet, especially you cannot yet make your own Box using stable, which also means you cannot have a dyn MyTrait allocated from anywhere other than Global (using stable).

aside: that observation about DSTs is why I like noting that slices can be expressed as approximately type [T] = [T; dyn usize]. "Erased const generics" is I think the most fitting way to add custom DSTs to Rust.

Self suggestion, initially quoted by @dhm.

4 Likes

Probably too late for this issue, not sure what policy is for filing for the next (does it need to have been said after publication of the last TWiR?):

the amount of times that I spend 15 min in the docs + coding which end up in a monstrous or().flatten().map().is_ok_and() only to get slapped by clippy saying replace your monster with this single function please is way too high :laughing:

said by Teufelchen in a RIOT chat.

11 Likes

Just because technology alone cannot solve all problems doesn't mean we shouldn't leverage technology to chip at it and decrease the burden on humans.

u/mattheium on r/rust

4 Likes

llogiq thanks himself for the suggestion!

By Ilogiq, on TWIR 646, thanking Ilogiq for his suggestion.

5 Likes