HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 5 months agoWhy make it complicated?lemmy.mlimagemessage-square119linkfedilinkarrow-up1321arrow-down128file-textcross-posted to: [email protected]
arrow-up1293arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 5 months agomessage-square119linkfedilinkfile-textcross-posted to: [email protected]
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up3·5 months 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.