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

> allows you to omit a single argument from your parameter list, by instead passing the previous value

I have no idea what this is trying to say, or what it has to do with the rest of the article.



It's getting at the essential truth that for all(?) mainstream languages since object orientation and the dot syntax became a thing `a.b()` implicitly includes `a` as the first argument to the actual method `b(a self)`. Different languages have different constructs on top of that, C++ for example includes a virtual dispatch mechanism, but the one common idea of the _method call_ is that the `self` pointer is passed as the first argument.




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

Search: