Skip to content

Instantly share code, notes, and snippets.

@MrJaba
Created July 26, 2010 15:31
Show Gist options
  • Save MrJaba/490702 to your computer and use it in GitHub Desktop.
Save MrJaba/490702 to your computer and use it in GitHub Desktop.
#I hate this:
unless <condition> do
horrible_multiline block
more hideousness
end
#Even worse
unless <condition> do
horribleness
else
i_want_to_vomit
end
#think it should only be used like this:
do_something unless <condition>
@chad
Copy link

chad commented Jul 26, 2010

Ah thanks. You think any unless condition should be small enough to fit in a statement modifier.

@MrJaba
Copy link
Author

MrJaba commented Jul 26, 2010

Exactly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment