Skip to content

Instantly share code, notes, and snippets.

@stormbrew
Created April 28, 2012 20:39
Show Gist options
  • Save stormbrew/2521852 to your computer and use it in GitHub Desktop.
Save stormbrew/2521852 to your computer and use it in GitHub Desktop.
Devil's advocate argument for case based on its term-less form
# Ugly poorly aligned if
if a == b
elsif b == c
elsif z == d
else
end
# nicely aligned case
case
when a == b
when b == c
when z == d
else
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment