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
[email protected]
https://mail.mozilla.org/listinfo/rust-dev