Skip to content
Discussion options

You must be logged in to vote

if not is basically the same as Ruby's unless. I'm sure there was a proposal for that, but it's really hard to search for....

The general consensus is that unless is more confusing than not when applied with multiple conditions (sometimes it works, but most of the time it takes some effort to parse), and is pointless when combined with else.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@PathogenDavid
Comment options

Answer selected by hrrrrustic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants