HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 days agoWhy make it complicated?imagemessage-square105linkfedilinkarrow-up1338arrow-down133file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1305arrow-down1imageWhy make it complicated?HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 days agomessage-square105linkfedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up5·22 hours 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.