(no title)
tegeek
|
5 years ago
Most typed languages work like this way. For example, Java compiles down to the bytecode. The JVM bytecode doesn't have preserve generics information. But Java code has generics so when it compiles down to the bytecode, it removes that information.
This is almost true for all high level languages. Kotline's type system is very different than Java but it also compile down to the bytecode so Java and Kotline shares their libraries without sharing the type system.
Type Script is no different. Only problem here is that Type Script doesn't bring its own "runtime" or libraries.
No comments yet.