Relfection and Annotations?

Skip to first unread message

Marty Pitt

Oct 11, 2011, 4:50:23 AM10/11/11
to General Dart Discussion
Hi there

First up - congrats, this language looks great, and a pragmatic "best
of both worlds" that I've been waiting for.

I've done a tonne of framework development in Actionscript / Flex, and
looking forward to getting into porting some of it across to Dart.

However, most of the frameworks make use of reflection and metadata /
annotations in some way. Are we likely to see support for these in
Dart in the future, or is it time for a paradigm shift when thinking
about building frameworks? (I note that one of the articles mentions
that Dart discourages "gratuitous use of reflection")

Gilad Bracha

Oct 11, 2011, 4:54:54 AM10/11/11
to Marty Pitt, General Dart Discussion

There will be reflection support, based on the notion of mirrors. That said, you want to think careful whether reflection is the best way to do what you're doing.
Cheers, Gilad

Florian Loitsch

Oct 11, 2011, 4:55:14 AM10/11/11
to Marty Pitt, General Dart Discussion
Reflection-support: definitely. It will be inspired by
Annotation-support: probably.
// florian

Give a man a fire and he's warm for the whole day,
but set fire to him and he's warm for the rest of his life. - Terry Pratchett
Reply all
Reply to author
0 new messages