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

For me, that's similar to writing

  if(var == true) {

  }
It's more verbose than necessary, but not wrong.


In Python and JavaScript it is also asserting the type of the thing being compared, which, I argue is better code style. It is a mess having to think about all those things being truish.




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

Search: