HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-28 天前Why make it complicated?lemmy.mlimagemessage-square122fedilinkarrow-up1363arrow-down139file-text
arrow-up1324arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-28 天前message-square122fedilinkfile-text
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up5·8 天前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.
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.