Will there be an equivelent of the c# Reflection.Emit namespace in dart?
Reflection.Emit has a number of classes that are used to build types at run time and adding properties, configering their getters and setter and building methods and event handlers all at run time, which is really powerfull when it comes to metaprogramming.
my idea is about generating my data models at run time and caching them in a map so i can create instances at run time and add new methods and properties to them when i need to and not having to use mirrors often after generating the class, this could be really useful when writing ORMs and more dynamic applications where you use reflection once rather than using it every time you need to modify an instance
My questions are:
- Will there be such thing in the future versions of dart? they mention
something about a
Mirror Builder
but i am not sure if does the same thing, can some one please confirm if thats what a Mirror Builder is about? - another question is, if i am able to generate my data types on the server as strings, is there a way to to compile them before sending them to the client and map them in a Map and use this Map to create instances?