fun
fun copied to clipboard
draft(task_either): tryCatch refactor
We talked about a new way of dealing with tryCatch in #50
This is a draft / POC PR of what was discussed there, for easier discussion everything is easily testable from this PR.
The two things that come off weird to me after having it implemented and tested is:
- ~we're no longer accepting
Taskas the ADT suggests.~ - passing arguments on to the error clause as we do (2nd argument as a spread), feels somewhat unnatural
Edit: realized quickly, I'm wrong on point 1.