3 ms·
Strong and weak typing isn't a very useful designation. most people take string typing as what my favorite languages have and weak typing as everything else. By
by dkersten 17y ago
Strong and weak typing isn't a very useful designation. most people take string typing as what my favorite languages have and weak typing as everything else. By the most common definition, strong typing seems to mean that you can never have implicit type casts, while with weak typing you can.
Again, by common definitions, static typing is when the compiler always knows the types (either through type declarations or type inference) and dynamic typing the types are not known until runtime.
Going by these definitions, C uses weak static typing. OCaml uses strong static typing. Python uses weak dynamic typing.
By these definitions, haskell IS statically typed because it uses type inference, but the compiler still knows the type at compile time.
Paradigms is messy because there are more paradigms that listed in the table and many more hybrids.. I guess its useful as a quick guideline, but I certainly wouldn't base.. well, anything, on this.
So, in the end, I have to agree. The table is interesting and fun, but not useful.