HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-210 days agoWhy make it complicated?lemmy.mlexternal-linkmessage-square122fedilinkarrow-up1354arrow-down138file-text
arrow-up1316arrow-down1external-linkWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-210 days agomessage-square122fedilinkfile-text
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up5·9 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.