4 ms·
Completely agree 100%. Hopefully Typescript isn't merging any sort of runtime type checking.
by smrtinsert 12y ago
Completely agree 100%. Hopefully Typescript isn't merging any sort of runtime type checking.
- the_gipsy 12y agoI think angular is not after runtime type checking, like the TypeScript compiler. I think what they're after is keeping type information beyond `instanceof`, like keeping information about interfaces and the ability to access type properties beyond `Foo.prototype.bar`. Edit: to clarify, runtime type information should not be used to check for types again, but rather to do things similar to Java's reflection.
- xxgreg 12y agoThe angular team designed atscript. Have a look at their doc. It does contain runtime type checking and it looks like this: var length = rtts.type(name.length, rtts.int); https://docs.google.com/document/d/11YUzC-1d0V1-Q3V0fQ7KSit97HnZoKVygDxpWzEYW0U/edit https://docs.google.com/document/d/11YUzC-1d0V1-Q3V0fQ7KSit9...
- the_gipsy 12y agoYou're right, sorry.