Thursday, May 18, 2017

statically typed vs dynamically typed language

Statically typed languages 'type check' at compile time and the type can NOT change. (Don't get cute with type-casting comments, a new variable/reference is created).
Dynamically typed languages type-check at run-time and the type of a variable CAN be changed at run-time.

Python, bash - dynamically typed language
                      - interpretable

c, c++,go  - statically  typed language
                  - compilable


No comments:

Post a Comment