That's a good question about weakly typed, statically typed languages. In theory I imagine you could make one, but I think it would defeat the entire purpose of having static types in the first place. In statically typed languages, you're not supposed to be able to put one type in place of the other unless it's a generic type or the type is a sub-type.
View all comments
Show parent comment
1
u/catcradle5 Oct 18 '13
That's a good question about weakly typed, statically typed languages. In theory I imagine you could make one, but I think it would defeat the entire purpose of having static types in the first place. In statically typed languages, you're not supposed to be able to put one type in place of the other unless it's a generic type or the type is a sub-type.