using enum #9390
Unanswered
The-Futurist
asked this question in
Language Ideas
using enum
#9390
Replies: 1 comment
-
That exists today: you can just |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Akin to
using static
This currently lets us omit the the type name of an enclosing
static
class
and just use the contained member name as is.While coding something today with quite a few enums, it struck as me as potentially helpful if we could do a similar thing for
enum
.That would let me write this:
instead of this:
Beta Was this translation helpful? Give feedback.
All reactions