Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created May 28, 2015 06:06
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 pjazdzewski1990/6ef7a887c829872f739f to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/6ef7a887c829872f739f to your computer and use it in GitHub Desktop.
Value or Exception:
[1,2,3]
Exception 'Failed to parse source' was thrown
Either:
Right([1,2,3])
Left(Failed to parse source)
Option:
Some([1,2,3])
None
Try:
Success([1,2,3])
Failure(Failed to parse source)
Future:
Java Style:
Future failed with 'Failed to parse source'
Future ended with '[1,2,3]'
[1,2,3]
null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment