News for hackers. Stuff that matters.
Re:Ask HN: Why Python over Ruby? by biaxident on Wednesday July 01, 2009 @08:29AM (#682498)
"5" * 2 == "55"

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.

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.