12 ms·
Even in a strongly typed language like Java or C#, nothing stops `(string)(object)42`. It all compiles and fails at runtime, like TypeScript. No matter what la
by colejohnson66 1y ago
Even in a strongly typed language like Java or C#, nothing stops `(string)(object)42`. It all compiles and fails at runtime, like TypeScript.
No matter what language you’re in, the second you use a cast, you’re asserting to the compiler that you know more than it.