Strong vs. Weak Typing

Started by
20 comments, last by Grizwald 20 years, 11 months ago
quote:Original post by Grizwald
what are the advantages of a strong typing system vs a weaker system.

Erm... it ensures freedom from type errors? Is this a trick question?
Advertisement
quote:Original post by Arild Fines
weakly typed language

A language in which types may be ignored; the opposite of strongly typed. VBScript is weakly typed. In VBScript, you can concatenate the string ''12'' and the integer 3 to get the string ''123'', then treat that as the integer 123, all without any explicit conversion.

So Python is both dynamically typed (because it doesn’t use explicit datatype declarations) and strongly typed (because once a variable has a datatype, it actually matters).


Ah, I see. The other three categories I''ve all encountered, but I''ve never encountered a "weakly typed language" by that taxonomy. Seems rather stupid to me.
---New infokeeps brain running;must gas up!

This topic is closed to new replies.

Advertisement