Strong Typing?
Nov. 17th, 2005 08:34 amGeek question:
What is the feature of a language that you consider "strong typing"? How does strong typing manifest itself (or not) in your favourite language or two?
Geek question:
What is the feature of a language that you consider "strong typing"? How does strong typing manifest itself (or not) in your favourite language or two?
(no subject)
Date: 2005-11-17 11:36 pm (UTC)>>> foo = "a"
>>> foo += 1
Traceback (most recent call last):
File "", line 1, in ?
TypeError: cannot concatenate 'str' and 'int' objects
I use python because I Am Not a Programmer and it's the only thing I can remember enough of when I go back to my hacky code six months later to not waste huge squads of time figuring out what I was doing.
I did program in C once, and didn't do too badly. And I even wrote some stuff in PostScript.