-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Support enums in Dart VM #21416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @gbracha. |
Thinking ahead, will there be a flag (a la the one for async)? That is something like "--enable_enums"? I've got support in flight for Intellij/IDEA and want to be sure to set VM options appropriately. |
It won't need a flag. It's TC52 approved (TM). |
This comment was originally written by @mhausner Enums are part of the spec that we expect ECMA to bless shortly, so I don't think we will need a flag to enable or disable the feature. |
No muss, no fuss. That's the best answer possible. Thanks! |
Marked this as blocking #88. |
Added Started label. |
This comment was originally written by @paulevans I know it's a little late - but enums as specified do not cover interop situations well where there's an expectation that an enum can be associated with a particular value (e.g. pnacl, http status messages with gaps in ranges, Windows messages, etc). I'm also concerned about a hidden runtime impact of using an enum over a defined constant value that programmers coming from a C/C++/C# background would assume is not there. I have no idea if this is the best place to register my concerns, but that's my 2c anyway. |
Regarding comment 11: This is not the correct spot to raise these issues. This bug is about implementing the current specification in the VM. If you want to raise your concerns please do so in a new bug. |
This comment was originally written by [email protected] I filled the first comment from @11 as Issue #6 |
Tracking bug.
Draft spec: https://www.dartlang.org/docs/spec/EnumsTC52draft.pdf
The text was updated successfully, but these errors were encountered: