I am in favor of replacing the mod keyword by crate. #[package_id = "whoami"]; #[package_type = "lib"]; ... use crate whoamiextern
but I wouldn't understand why the 'mod' keyword would stay ----- Gaetan 2013/12/18 Liigo Zhuang <[email protected]> > `use crate foo; ` looks good to me. i always think it should be optional. > rustc can deduce which crate will be used, from use mods lines, in most > situations. > > > 2013/12/18 Brian Anderson <[email protected]> > >> We discussed this some in the meeting today: >> https://github.com/mozilla/rust/wiki/Meeting-weekly-2013-12-17 >> >> >> On 12/16/2013 06:41 PM, Liigo Zhuang wrote: >> >> >> 2013/12/16 Brian Anderson <[email protected]> >> >>> My feeling is that it is a crate, since that's the name we've >>> historically used. There's already been agreement to remove "extern mod" in >>> favor of "crate". >>> >> >> IMO, "package" is used in several languages, maybe it's much familiar >> and friendly to rust newbies: >> >> >>> ``` >> >> package newpkg; // pkgid is "newpkg", compile to dynamic library (.so) >> >> package main; // pkgid "main" means compile to executable program (.exe) >> >> static package newpkg; // pkgid is "newpkg", compile to static library >> >> >> >> extern package newpkg; // or … >>> >> extern package newpkg = "http://github.com/liigo/rust-newpkg#newpkg:1.0"; >> >> ``` >> >> >> But I'm OK if "crate" is used here. >> >> Liigo, 2013-12-17. >> >> >> > > > -- > by *Liigo*, http://blog.csdn.net/liigo/ > Google+ https://plus.google.com/105597640837742873343/ > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
