|
|
|
|
|
by robertlagrant
877 days ago
|
|
Hah yes, me too. Python has the opposite problem. C changes the type of a supplied value to fit the declared variable type. Python changes the type of the variable to fit its value's (or reference's) type. So in C if I assign a char literal to an int, I get an int. If I do the same in Python, I get a string. In a strongly typed language, which I'm defining as "needs the left and right hand side of an assignment expression to match somehow", I'd get a type error. |
|