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

I find `if not` to be a far superior version, simply because it reads similarly to it's `if` counterpart, specifically for how conventionally condition methods are written in ruby.

`return if not valid?` or `return if invalid?`

Both make sense in my brain, whereas

`return unless valid?`

Feels like I need to make another connection to understand it



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

Search: