Closed
Description
Rust has a module system and so it seems like a waste to just export everything as std::foo
and extra::foo
: grep '^pub mod' | wc -l
counts 53 and 50 direct exports respectively.
Low hanging fruit would be moving std::{i8,uint,f32, ...}
to std::num::*
.
Other possibilities (off the top of my head):
std
:ascii
,c_str
tostr::*
or evenascii
,c_str
,to_str
,from_str
,str
,fmt
tostd::text::*
(or anything in between)hashmap
,trie
,vec
,at_vec
tocontainer::*
at_vec
tovec::at_vec
(orcontainer
as above)ptr
,owned
,managed
,borrow
toptr::*
(with the currentptr
becomingptr::raw
.)
extra
:bigint
,rational
,complex
tonum::*
dlist
,list
,ringbuf
,smallintmap
,priority_queue
,treemap
tocontainer::*
sha1
,sha2
,md5
,md4
tocrypto::*
(or something, I'd feel bad about puttingmd5
/md4
in "crypto")
(I imagine it'd be very easy to get carried away with making it too granular.)
Metadata
Assignees
Labels
No labels
Activity