On 03/22/2013 04:51 PM, Patrick Walton wrote:
> Hi everyone,
>
> It's been proposed that we place enum variants under the enum itself.
> That is:
>
[snip]

>
> * `::` will show up for many casual uses of enums. e.g.
>
>     enum Color { Red, Green, Blue }
>     fn main() {
>         let x = Color::Red;
>         match x {
>             Color::Red => ...
>             Color::Green => ...
>             Color::Blue => ...
>         }
>     }
>
>

I'm going to come on in and contribute to the bikeshed... I think this
is pretty stanky.   Everything else in your proposal seems to be really
clean: less typing for a lot of things. But in this particular snippet,
in-file use shouldn't, IMO, have that level of noise. I would think that
local use should propagate out to the in-file namespace.


-- 
Regards,
Paul


_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to