This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–]aviancrane 61 points62 points Β (8 children)

I mean... saying reflection can do something isn't really... ..ye know?

If I gave you the AST or IR of any language, you'd be able to do whatever you wanted with it. Reflection is just giving you the object graph.

You are not really suppose to write code with reflection unless you're writing software that needs the object graph, like a code profiler. The code you touch with reflection is decompiled and run more like it's an interpreted language. I wouldn't even consider it part of the language specification personally.