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

That arguably depends on your POV. Thinking like python where a method always declares 'self' as the first argument, then a function is just 1 thing (there's no such thing as a method). Then dot syntax is just syntactic sugar for passing the first argument, and there's nothing special about functions. You can manually pass the first argument.

In other words, to me it's simpler and therefore less confusing.



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

Search: