This package defines julia implementations for the common types Option (aka Maybe), Either and Try, as well as one extra type ContextManager which mimics Python's with-ContextManager.
The package is soon going to be registered at General, until then you can use it by adding a custom registry.
using Pkg
pkg"add DataTypesBasic"Use it like
using DataTypesBasicFor more details check out the documentation.