Monday, 18 November 2013

Strong typed and Weakly typed too

As a C# programmer, used to think C# is strongly typed, but after the introduction of dynamic keyword, we can't really claim so anymore. Between read a great article from Eric, below is brief

1. C# is is both a strong and weakly typed language
2. What is strongly typed - type safe, memory safe and statically typed.
          > type safe - it won't allow a static type to store in to a variable of another incompatible type. Static type disallows dynamic here.
          > memory safe - prevents accidental access to bad memory.
          > statically typed - all typed are determined at compile time.
3. Weak typed, because 'unsafe', 'dynamic' and cast operators will provides us mechanism to overrule above said safety systems.

No comments: