Closed
Description
I request a runtime type checking system that perhaps looks something like this:
function square(x: number!) {
return x * x;
}
Where the !
tells the compiler to generate a runtime type check for a number, something akin to tcomb.js.
Of course, this gets much more complicated with interfaces, but you get the idea.