Is there any reason why this works:
use foo::bar1;
use foo::bar2 as baz;
and this not:
use foo::{bar1, bar2 as baz};
This seems inconsistent and unreasonable to me.
Is there any reason why this works:
use foo::bar1;
use foo::bar2 as baz;
and this not:
use foo::{bar1, bar2 as baz};
This seems inconsistent and unreasonable to me.
Totally agree. I've found myself wanting to use that syntax a few times. Would love to see it added.
+1
I think this is a pretty easy change to make (tweak the AST, parser, and resolve a bit) but you probably want to file an rfc for this.
I'll repost it to internals and see how to proceed from there.