On 05/08/13 19:56, Dov Reshef wrote:

If I understand correctly "mod foo" import the foo module into the current module, and "use foo::bar" bring bar from foo module into the current scope, so it seems more logical that use should follow mod, not the other way around.

My understanding is that "mod foo;" is kind of like "mod foo { ... }" except that with "mod foo;" the body of the module comes from a different file, so it is more like a definition than an import.

Gareth
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to