exceptions VS either

Compare exceptions vs either and see what are their differences.

exceptions

mtl friendly exceptions (by ekmett)

either

The enum Either with variants Left and Right is a general purpose sum type with two cases. (by rayon-rs)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
exceptions either
1 3
48 437
- 5.7%
4.4 7.3
3 months ago 6 days ago
Haskell Rust
BSD 3-clause "New" or "Revised" License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

exceptions

Posts with mentions or reviews of exceptions. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-03-21.
  • Async Control Flow
    7 projects | /r/haskell | 21 Mar 2021
    I see. Do you think rethrowing the original exception is the the right approach in all cases, or only in this case? In the documentation I wrote for the exceptions package, I recommend to let the release block's exceptions take priority, to match base's behavior. Should I recommend the opposite?

either

Posts with mentions or reviews of either. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-26.
  • What's the deal with Error Handling - Custom Error enum and the different libraries out there.
    1 project | /r/learnrust | 1 Jun 2023
    Restricting what can go into a Result in the error variant is quite restrictive. It's often very convenient to use Result as a sort of "this or that" type without any connotations about errors, particularly as an internal convenience. Arguably one might want to use either instead, but it's a lot of ceremony to bring that in for simple use cases.
  • Is there a RFE for this feature and if so, what is it called?
    7 projects | /r/rust | 26 Nov 2022
    P.S. you can use either to make it work on stable rustc
  • Ask HN: Would you support government open source grants?
    1 project | news.ycombinator.com | 10 Jan 2022
    The European Union does not have as large a software industry as the USA so there would be a less strong argument of government/corporate competition. It could take the form of government grants depending on the size. My rationale is that governments benefit from the general prosperity of open source more so than solo authors or small companies.

    I am restricting the scope to simple and small libraries where investment is more clearly beneficial unlike Tensorflow as that is large and complex.

    Here is an extreme example, the 'either' crate is a 'rayon' dependency and many others. Paradoxically a project of this size likely does not need funding but it is really important.

    https://github.com/bluss/either

What are some alternatives?

When comparing exceptions and either you can also consider the following projects:

either - the EitherT monad transformer

distributed-process-platform - DEPRECATED (Cloud Haskell Platform) in favor of distributed-process-extras, distributed-process-async, distributed-process-client-server, distributed-process-registry, distributed-process-supervisor, distributed-process-task and distributed-process-execution

control-monad-exception - Explicitly Typed exceptions as a library

tauri - Build smaller, faster, and more secure desktop applications with a web frontend.

failure - A simple type class for success/failure computations.

categories - categories from category-extras

recursion-schemes - Generalized bananas, lenses and barbed wire

control-monad-omega - A Haskell monad for fair enumeration of infinite sets.

streamproc - Haskell library providing a continuation-based stream processor arrow

hask - Category theory for Haskell with a lens flavor (you need GHC 7.8.3, not 7.8.2 to build this!)

record - Anonymous records