I agree that this is really weird and confusing. I think the simple fix would just be allowing mod to also come before `use`?
On Mon, Aug 5, 2013 at 3:24 PM, Jeaye <[email protected]> wrote: >> 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; > > > I'm actually 100% for this change. It seems very weird to add a 'mod foo' > and then have to go *above* the import to 'use foo::bar;'. If this can be > done without much of a hassle, my vote is in its favor. > > Jeaye > _______________________________________________ > 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
