Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Java has runtime type definitions, which you can use to automatically type check deserialized objects. With reflection you can write that in ordinary Java.

I imagine C# and other Java-esque languages have something similar. But Typescript deliberately avoids that, and it would be difficult to get it to do so.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: