Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

That's not true. You can call an instance method from anywhere given an object. There's just no implicit 'this' in a static method.


Er, what's that? I seem to have lost a receiver for your message...

Once you go functional, instance methods start to look like a special klugery for currying the first argument to a function. Go and Nim (for instance) hint at this more than a little, as well, with their OOP syntax.

Bundling two kinds of methods within a "class" starts to feel weird when you start using individual functions.




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

Search: