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

What would you expect the behavior to be there? [5, 5]?

I know that JS has its quirks (to say it nicely), but once you understand it (type coercion, equality, scoping, etc) it doesn't seem to be a huge burden to me.



Yes. That's the behaviour in Python, Ruby and just about every other language with overloaded operators.




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

Search: