3 ms·
I agree that the answer is obviously yes, as types and tests do different work. However "types" in dynamically typed languages are not the same thing as types i
by noelwelsh 7y ago
I agree that the answer is obviously yes, as types and tests do different work. However "types" in dynamically typed languages are not the same thing as types in statically typed languages. One difference is that one causes an error at compile time and one causes an error at run time. Types in statically typed languages can replace tests, but types in dynamically typed languages cannot (unless you believe program crashes are a desired response to code errors.)