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

I've taken to trying to make the ! stand out more:

  if( ! llama) {
          ...
      }
I don't know that it's an improvement, and my personal jury is still out, but I currently hold that it's better than the risk of the single equals bug that another reply points out, or the Yoda conditional that is the suggested replacement.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: