1. 4
    Use chain for composable error handling with nested Eithers
    3m 57s

Use chain for composable error handling with nested Eithers

InstructorBrian Lonsdorf

Share this video with your friends

Send Tweet

We refactor a function that uses try/catch to a single composed expression using Either. We then introduce the chain function to deal with nested Eithers resulting from two try/catch calls.

Brian Lonsdorfinstructor
~ 8 years ago

I'm not sure I understand your question. Can you clarify? Either is the actual monad here chain is >>=