|
|
|
|
|
by NoiseByNW
2793 days ago
|
|
> Strong, because values have one specific type (or None) Because its type system does not provide implicit type conversion I guess.
But some languages have a stronger type system with, in addition, highly qualified types (e.g. constness, range, sign or any custom contract). > Dynamic, because variables acquire type information at runtime, and the same variable can, at different points in time This is not a characteristic of dynamic typing, some statically typed languages supports variable shadowing in the same scope.
A dynamic (or hybrid) typing system is IMHO simply a system which provides a variant type as first class citizen. |
|
Sure. Those are overly simplistic categories, but a full discussion of type systems in programming languages would be out of scope for that post.
> some statically typed languages supports variable shadowing in the same scope
Shadowing is a different issue. Shadowing refers to two different variables (which happens to have the same name), so it's orthogonal to whether the same variable is allowed to hold values of different types at different times.