HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-214 days agoWhy make it complicated?lemmy.mlimagemessage-square123linkfedilinkarrow-up1369arrow-down139file-text
arrow-up1330arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-214 days agomessage-square123linkfedilinkfile-text
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up5·13 days agofully qualified type names make any language awful. Here’s the same example in rust: let a = std::rc::Rc::new(std::vec::Vec<u8, MyAllocator>::new()); I believe u8 also comes from a module, so it would be something like std::u8::u8, but I’m not sure.
fully qualified type names make any language awful.
Here’s the same example in rust:
let a = std::rc::Rc::new(std::vec::Vec<u8, MyAllocator>::new());
I believe u8 also comes from a module, so it would be something like
std::u8::u8
, but I’m not sure.