Deferred Binding

Topics: General, Language Specification
Feb 4, 2013 at 11:59 AM
Edited Feb 4, 2013 at 12:00 PM
Like GWT typescript cannot offer reflection without generating tons of unnecessary code, so why not answer to the need of reflection in the same way that GWT, by giving us the capacity to generate code at compile time based on type information like in the generator part of the Deferred Binding.
That kind of features would improve greatly our capacity of creating sophisticated framework on top of TypeScript .
Coordinator
Feb 4, 2013 at 3:34 PM
It's much "cheaper" to solve this by tagging objects you care to inspect later with a tag denoting what they are. Full reflection isn't actually possible in JavaScript because you can't reflect into the shape of some types (namely functions).