3 ms·
This matters less once we get good IDE support. E.g. "mod" should be inserted automatically when you create a new submodule, "use" will be inserted as necessar
by tveita 10y ago
This matters less once we get good IDE support. E.g. "mod" should be inserted automatically when you create a new submodule, "use" will be inserted as necessary if you try to use something that is not in scope.
The other part is to have a set of conventions. Do I put "extern crate" in the root module or in the submodule that uses it? How do I order my use statements? Do I import just the module or each item in it? When the community settles on a standard way, IDEs can follow it.
- mathw 10y agoI'm hoping at some point rustfmt will order my use statements for me...
- sidlls 10y agoUnless an IDE is part of the standard somehow I strongly disagree that "IDEs make it better" is a good argument for preserving a language feature that is confusing. Not everyone uses an IDE, and for certain low level systems programming kinds of things (you know, the things Rust wants to target) sometimes an IDE isn't available or is cumbersome to use. That said I am a bit confused at the confusion. Rust is better than C++ in this regard, in my opinion, even if the system is a tad slower to build still.
- Manishearth 10y agoAgreed. This should be fixed in the docs, diagnostics, and maybe by changing the language in a way withoutboats recommends, but we should not rely on folks having an IDE.