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

Fair enough argument for that particular example, but I think the author's point still stands for the other example (if !user.suspended do send_email end)


That example makes more sense as:

  send_email unless user.suspended?
Here we see that we normally send email - except for the exceptional case of the user being suspended.




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

Search: