Aliases in use

It seems annoying for me that this syntax is not supported:

use foo::{bar1, bar2 as baz};

Seems rather obvious for me that it really should be defined, and I’d like to try and add it to the language. I’ve asked about that in users group (https://users.rust-lang.org/t/use-and-aliases-use-x-as-y/2151) and it seems to be welcomed improvement.

Any comments or reasons why it should be done differently are welcome. If I understand the process correctly, next step should be creating an rfc?

There was an RFC, it was postponed just before 1.0, maybe it's time for you to revive it.

Thanks for the reminder, I’ve re-opened the RFC now that we’re past 1.0: https://github.com/rust-lang/rfcs/pull/1219

Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.