Hi everyone
Currently extern mod, mod and use statements must appear in source files only in the following order: extern mod foo_c; use foo::bar; mod foo; I'd like if it can be changed to extern mod foo_c; mod foo; use foo::bar; 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. When I asked about this in the channel I was told the current rule was to prevent import collisions. I think import collisions should be an error anyway. There is also a simple solution with "use new_name = ...". Anyway sorry for the bikesheddy (a bit) mail. It just something that bit me and made me confuse their meaning up till today. Thanks for reading, Dov
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
