Re:Ask HN: Why Python over Ruby?
by earthboundkid on Thursday July 02, 2009 @06:32AM
(#684131)
"Obviously in this case the order of the arguments matter."
It's not obvious in terms of intuitiveness, no. Why not extend the Integer class to know to call mystring's * method when their order is reversed? That would be intuitive.
You're calling a method on a string, so you got the string doubled. Seems to make sense to me.
Obviously in this case the order of the arguments matter.