What is the distinction of package and crate in Rust?
2013/12/14 Patrick Walton <pcwal...@mozilla.com> > On 12/13/13 4:56 PM, Liigo Zhuang wrote: > >> "package" and "module", we only need one. Most other language only have >> one. The more, the more complicate. >> >> libstd.so: What we call it? "library" "package" "crate"?? other language >> usually call it "library". >> std::io::fs: We call it "module", other language usually call it >> "package" or "module". >> >> So, whatever we call it, package and module, we only need ONE of them, >> and let another gone. >> > > .NET has a two-level distinction: assembly and namespace. > > C++ has a three-level distinction in practice—namespace, > library/executable, and translation unit—although C++'s is somewhat > different. > > OCaml has a two-level distinction: library and module. > > D has a two-level distinction as far as I can tell: library and module. > > Racket has a two-level distinction as far as I can tell: package and > module. > > Patrick > > _______________________________________________ > Rust-dev mailing list > Rust-dev@mozilla.org > https://mail.mozilla.org/listinfo/rust-dev > -- by *Liigo*, http://blog.csdn.net/liigo/ Google+ https://plus.google.com/105597640837742873343/
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev