4 ms·
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 i
by jfengel 3y ago
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.