On 03/22/2013 07:41 PM, Paul Nathan wrote:
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.


'enum mod' does sounds like a fair approach to this; it flows more logically than 'enum class', too. This allows the extra verbosity to be disabled by default. I wonder, how many internals of Rust would accept this change willingly to clean up the public interface? How much can the API benefit from it (where the benefit to usercode is obvious)?

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

Reply via email to