functional-conditionals
A library for writing if / else if / else in a functional way. (by parker-codes)
result
A TypeScript result type taking cues from Rust's Result and Haskell's Either types (by badrap)
Our great sponsors
functional-conditionals | result | |
---|---|---|
1 | 2 | |
1 | 276 | |
- | 2.9% | |
10.0 | 3.9 | |
over 3 years ago | 26 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
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.
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.
functional-conditionals
Posts with mentions or reviews of functional-conditionals.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-23.
result
Posts with mentions or reviews of result.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-09.
- Python errors as values: Comparing useful patterns from Rust and Go
-
I created a package that adds Rust-like features to TypeScript
I'm using https://github.com/badrap/result for this purpose right now. I'll have to take a closer look at the API to see how your library differs, but I skimmed through the README and it looked promising. Good stuff :)
What are some alternatives?
When comparing functional-conditionals and result you can also consider the following projects:
neverthrow - Type-Safe Errors for JS & TypeScript
ts-results - A typescript implementation of Rust's Result object.
oxide.ts - Rust's Option<T> and Result<T, E>, implemented for TypeScript.
fp-ts - Functional programming in TypeScript
unwrapit - A graceful and intuitive way to handle errors in JS/TS.