-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Stability of mirror system for Dart VM #34198
Comments
You mention that the mirror system was considered unstable in Dart 1, can you elaborate on that with specifics of what is unstable. In Dart 2 we intended to maintain the same support that we had for dart:mirrors, there could be some issues that we overlooked. Could you elaborate on what you have found. |
Mirrors support was marked experimental for dart2js as far as I remember and |
It might be relevant to know the following: In a setting where 'dart:mirrors' is not supported you can do most of what 'dart:mirrors' will do using code generation with package reflectable. |
@a-siva it is right in the documention of
@zoechi Yes, I'm primary about VM support for it. @eernstg I considered |
@vanesyan,
In fact, reflectable does not generate any part files, it generates a single file which is intended to be imported from the library that contains your
That is also a property that reflectable doesn't share. However, it may of course be true that your setup will create some situations where the generated file does not yet exist and an IDE may be confused about that (there are many ways to set up your working environment, so I don't know exactly how code generation is triggered and how that's integrated with your IDE). |
At this point we have no plans for enhancing |
Stability consideration for mirror system since Dart 1 mirror system is considered as unstable. There was been another major bump of Dart as Dart 2 was released, were in mirror system is also considered as unstable, before stable release it's been a bit unclear will mirroring be introduced also in Dart 2 or not, now we have it. But can you, please, clarify the state of the mirror system for Dart 2 and what future for it is planning? Mainly I speak here about Dart VM.
The text was updated successfully, but these errors were encountered: