Last active
December 16, 2015 06:29
-
-
Save hashmal/5391756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- try/rescue example | |
[] -- This list will be used as a data-stack by the `try' operation. | |
(try) [ derp ] -- `derp' is undefined | |
(rescue) [ "Error happened. Recovering." puts ] | |
"Recovered from error." puts | |
-- When run, it displays the following: | |
-- | |
-- Error happened. Recovering. | |
-- Recovered from error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment