burrido VS ts-results

Compare burrido vs ts-results and see what are their differences.

burrido

Do-notation for JavaScript (by pelotom)

ts-results

A typescript implementation of Rust's Result object. (by vultix)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
burrido ts-results
3 7
173 1,061
- -
10.0 0.0
about 7 years ago 13 days ago
JavaScript 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.

burrido

Posts with mentions or reviews of burrido. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-30.
  • Late Architecture with Functional Programming
    2 projects | news.ycombinator.com | 30 Apr 2023
    do-notation can be easily implemented using delimited continuations (ie. generators). Generators compose well and flatten tail calls so you don't need TCO or trampolines. The only notable issue is that one-shot delimited continuations like generators don't work with non-deterministic monads (ie. List). Multi-shot can be emulated by keeping a cache of past values and replaying the generator, but performance will suffer. See burrido [1] for a JavaScript do-notation implementation.

    [1] https://github.com/pelotom/burrido

  • Handling errors like a pro in TypeScript
    3 projects | /r/typescript | 22 Dec 2022
    I haven’t tried this out myself but there’s libraries out there that emulate do notation with generators, if that’s any better than e.g. fp-ts’ Do. A quick Google search led me to burrido
  • Ante: A low-level functional language
    4 projects | news.ycombinator.com | 17 Jun 2022
    Looks great!

    A few questions (hopefully the author still reads it):

    * Any plan for support of arrow/monad comprehensions?

    * Semi-related: When it comes to generators it might be worth to consider making them clonable (see https://github.com/pelotom/burrido)

ts-results

Posts with mentions or reviews of ts-results. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-30.

What are some alternatives?

When comparing burrido and ts-results you can also consider the following projects:

ante - A safe, easy systems language

neverthrow - Type-Safe Errors for JS & TypeScript

mlton - The MLton repository

oxide.ts - Rust's Option<T> and Result<T, E>, implemented for TypeScript.

futhark - :boom::computer::boom: A data-parallel functional programming language

functional-conditionals - A library for writing if / else if / else in a functional way.

exceptionally - A fully type-safe and lightweight way of using exceptions instead of throwing errors

rust-option - brings Option / Result / match from Rust to Javascript

monads - Option, Result, and Either types for TypeScript - Inspired by Rust 🦀

option-t - A toolkit of Nullable/Option/Result type implementation in ECMAScript. Their APIs are inspired by Rust's `Option<T>` and `Result<T, E>`.

throwless - The Result and Option type from Rust ported to TypeScript.

result - A TypeScript result type taking cues from Rust's Result and Haskell's Either types