fun icon indicating copy to clipboard operation
fun copied to clipboard

draft(task_either): tryCatch refactor

Open pixeleet opened this issue 3 years ago • 1 comments

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.

pixeleet avatar Apr 02 '22 10:04 pixeleet

The two things that come off weird to me after having it implemented and tested is:

  • ~we're no longer accepting Task as 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.

pixeleet avatar Apr 02 '22 10:04 pixeleet