Jul 8, 2023
TS's type guards are the worst feature. In Java, everything is checked by the compiler for you. In TS you have to do this work by yourself with no help from the compiler. This leads to massive risks, because you will screw the type guard sooner or later and the compiler will trust you.