Hacker News new | past | comments | ask | show | jobs | submit login

Or use normal method names chosen by the class author like for example Ruby and many other languages. In the case of the standard library it's easy to be consistent. I concede that in any other case it can be hard or impossible.

About self, it's so strange to define a method with 2 arguments and call it with only one. Not only it's strange, it feels the opposite of being explicit. Most other languages manage to do without that self (Java, Ruby).

I run into another oddity today. Yesterday if forgot about

    a = 0
    if not a:
        print("like in C")



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

Search: