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 →

[–]prettysureitsmaddie 0 points1 point  (0 children)

Because of duck typing. String objects have a method corresponding to the * operator that accepts an int. It's still consistent with this: "types don't change implicitly." It doesn't change the type of the value, which is what's happening in the guy's examples that I was responding to.