Skip to content

Instantly share code, notes, and snippets.

@nobu
Created December 20, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobu/e70b0c897b12b936e063 to your computer and use it in GitHub Desktop.
Save nobu/e70b0c897b12b936e063 to your computer and use it in GitHub Desktop.
code 1 2 3 4
return; raise o o o o
begin return; rescue SystemExit; exit false; end o o o o
begin return; ensure exit false; end o F F o
begin ensure return; end A o o A
begin raise; ensure; return; end E A A A
begin raise; rescue; return; end E E E E
return false; raise o o o o
return 1; raise o o o o
  • o: exit successfully
  • F: exit with status 1
  • E: LocalJumpError
  • A: Abort by Stack Consistency Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment