Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a common operation. You should see how many people have to code it/get it wrong in topcoder. So it overloads * -- how often are you going to multiply a string?


Yeah. I never divide strings, either. I think I'll override :/ to form filesystem paths! x = "var". x/"log"/"messages". Awesome!


We have different opinions on what's important in a language. I want something that's as fast to write as prose, so that my mind can focus on other things in the problem domain. This may mean that my code is rather unreadable to people used to coding in specific idioms. But functionality is commented at a higher level, so then what are they doing reading individual statements from my code anyway?

This means that, sometimes, I find myself in opposition to the python community for its goals of readability and regularity, but it's a powerful language chalk full of good ideas and one of the most important tribes on the net, so I still use it.


> But functionality is commented at a higher level, so then what are they doing reading individual statements from my code anyway?

(1) Because it's not doing what I expected. (2) Because I want to do something with it that you didn't forsee.


It sounds like you just said, "my code is unmaintainable, but that doesn't matter because it's commented".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: