This project is read-only.

Deferred Binding

Topics: General, Language Specification
Feb 4, 2013 at 12:59 PM
Edited Feb 4, 2013 at 1: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 .
Feb 4, 2013 at 4: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).