| ▲ | galonk a day ago | |
Pedantic as hell but `"100" * 2` in Python (= `"100100"` for those who don't know) isn't really typing, it's operator overloading. Any language with that could implement the same questionable design decision. | ||
| ▲ | Sohcahtoa82 a day ago | parent [-] | |
And as much as I love Python, being able to multiple a string by an integer doesn't make sense when adding an integer to a string is a TypeError. Being able to repeat a string is fine, but it should be a str.repeat() function, not an operator overload like that. | ||