#954 – Static Typing vs. Strongly Typed
October 17, 2013 3 Comments
There is often confusion in C# between the terms static typing (or statically typed) and strongly typed.
Static typing is the process of enforcing type safety at compile-time, ensuring that you only interact with objects in ways that are allowed by that object’s type. C# mostly uses static typing to enforce type safety, but also supports dynamic typing, using the dynamic keyword.
The idea of a language being strongly typed is, in general, the idea that a language enforces type safety. This may be done either statically or dynamically. People have traditionally considered C# to be a strongly typed language.
The term strongly typed is not all that useful, however. The term is subjective and means different things to different people. Different languages may be more or less strongly typed than other languages. So it doesn’t make sense to say that a language is or is not strongly typed.