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

That's exactly how Ruby behaves.


Ruby and Python agree on the all/any functions, but they disagree on the if. And in the "if", I think the Ruby result is better.


JavaScript thinks empty arrays are true and it’s annoying because you have to write if (a.length) instead of if (a).




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

Search: