Aliases in use

#1

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?

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

Thanks.

0 Likes

closed #5

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

0 Likes