I have been reading some posts and it always get me confused.
1, some says a language is static/dynamic by how the type
is determined, in runtime or in compile time. But should we say the language is static/dynamic typing language
rather than static/dynamic language
?
2, in some comparison of swift vs objective-c. We know that objective-c uses its runtime to do dynamic method dispatch. And some uses this as a reason to say that the language/objective-c is dynamic
, is this true?!
3, I'm sometimes confused about the OOP's polymorphism, some says in order to make it work, the language HAS to support method dynamic dispatching. Is this right?
4, for swift, I know it's a static typing language, but is it a static or dynamic method dispatching language? and is it a static or dynamic language overall??