-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to call untyped errors #40
Comments
I suggest |
I think |
What do you think about "terminal errors"? |
I'm working on a PR which aims to more or less finalize error handling for
I didn't like it when I first read it because I was too concerned about naming consistency with Overall naming consistency is pretty big priority to me but I don't think we should worry about it too much in the case of this error channel. WDYT? |
@Avasil not sure what you're thinking of, but "untyped errors" already have a standard and pretty clear name imo — exceptions 🙂 |
@alexandru In discussions about Bifunctor I often see that errors in Bifunctor IO are called "typed" (reflected in the type signature) and Monofunctor IO has "untyped" errors. Of course BIO having all errors represented in the type signature is an illusion and there is also hidden "untyped" error channel which needs at least a small amount of separate combinators. The idea is that these unexpected errors are not something the user either cannot handle or can only handle at the edges of the program and it skips most error handling combinators. I also extended |
@Avasil |
There are two channels of errors in Bifunctor implementations:
RejectedExecutionException
and everything that we don't care about in the signature.I'm not sure how to call the latter, right now I use "fatal" which is kind of accurate but I'm worried about confusion with
scala.util.control.NonFatal
and really fatal errors likeOutOfMemoryError
The text was updated successfully, but these errors were encountered: