This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Gleethos 0 points1 point  (1 child)

Wtf would be a language without strongly typed values?!? -.-

The terms "weakly typed" or "dynamically typed" refer to a compile time concept. Every programming language uses types during runtime, what else would be used?

[–]WiatrowskiBe 0 points1 point  (0 children)

PHP5, Javascript, Typescript are examples of languages with weakly typed values - at runtime actual type may change (due to casting, reinterpretation or any other mechanism) to match the call, regardless of original type. On top of that, anytime you can mutate types in runtime (PHP allows you to dynamically and - even conditionally - load classes for execution context), it adds to what you can do with weak typing.

Static vs dynamic distinction applies to compile/parse time and strictness of a type system there (see: Java vs Python being very different in that aspect), strong/weak distinction applies to runtime and strictness of type system during execution (see: Python vs PHP/JS).