Module local preludes

It would be nice if there was a way to import items into the current module as well as all its submodules, so you don't have to repeat the import in every file. This would make user-defined preludes much more convenient to use:

global use prelude_cli::*;

Edit: I just realized that this would have the same effect as stabilizing #[prelude_import].

3 Likes