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

I would argue that it is actually waaay more awkward to use objects for this. See my example code here:

https://news.ycombinator.com/item?id=23338700

You will see that it is far more concise and intuitive to do it with a function.



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

Search: