An open API service providing repository metadata for many open source software ecosystems.

Topic: "result-type"

gigobyte/purify

Functional programming library for TypeScript - https://gigobyte.github.io/purify/

Language: TypeScript - Size: 33.4 MB - Last synced at: 25 days ago - Pushed at: 26 days ago - Stars: 1,586 - Forks: 64

mobily/ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.

Language: TypeScript - Size: 16.2 MB - Last synced at: 3 months ago - Pushed at: over 1 year ago - Stars: 1,188 - Forks: 28

pointfreeco/swift-validated

🛂 A result type that accumulates multiple errors.

Language: Swift - Size: 61.5 KB - Last synced at: 20 days ago - Pushed at: over 1 year ago - Stars: 394 - Forks: 18

option-t/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>`.

Language: JavaScript - Size: 10.4 MB - Last synced at: about 1 month ago - Pushed at: about 1 month ago - Stars: 350 - Forks: 5

badrap/result

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

Language: TypeScript - Size: 514 KB - Last synced at: 3 months ago - Pushed at: 4 months ago - Stars: 296 - Forks: 6

bitwizeshift/result

A lightweight C++11-compatible error-handling mechanism

Language: C++ - Size: 2.84 MB - Last synced at: 8 months ago - Pushed at: over 3 years ago - Stars: 296 - Forks: 17

overflowy/safe-result

A Python package for elegant error handling, inspired by Rust's Result type.

Language: Python - Size: 57.6 KB - Last synced at: 12 days ago - Pushed at: about 1 month ago - Stars: 160 - Forks: 5

MaT1g3R/option

Rust like Option and Result types in Python

Language: Python - Size: 788 KB - Last synced at: 3 months ago - Pushed at: about 2 years ago - Stars: 97 - Forks: 6

alice-biometrics/meiga

🧙 meiga is a Python µframework that provides a simple, fully typed, monad-based result type ➡️ Result[Value, Error].

Language: Python - Size: 562 KB - Last synced at: 3 months ago - Pushed at: about 1 year ago - Stars: 81 - Forks: 1

pimbrouwers/Danom

Option and Result types for C# to simplify functional programming.

Language: C# - Size: 412 KB - Last synced at: 8 days ago - Pushed at: 4 months ago - Stars: 51 - Forks: 3

musicq/unwrapit

A graceful and intuitive way to handle errors in JS/TS.

Language: TypeScript - Size: 192 KB - Last synced at: 3 months ago - Pushed at: about 1 year ago - Stars: 46 - Forks: 0

mplanchard/safetywrap

Fully typesafe, Rust-like Result and Option types for Python

Language: Python - Size: 295 KB - Last synced at: 3 months ago - Pushed at: over 5 years ago - Stars: 46 - Forks: 3

xyzsd/dichotomy

Result, Either, Try, and Maybe monadic types for Java

Language: Java - Size: 344 KB - Last synced at: 5 months ago - Pushed at: 8 months ago - Stars: 40 - Forks: 3

ootidea/result-type-ts

A TypeScript library for the Result type.

Language: TypeScript - Size: 210 KB - Last synced at: 3 months ago - Pushed at: about 1 year ago - Stars: 37 - Forks: 1

eminarican/safetypes

Rust like result and option implementation for golang

Language: Go - Size: 31.3 KB - Last synced at: 9 months ago - Pushed at: over 3 years ago - Stars: 35 - Forks: 2

bluehands/Funicular-Switch

Funicular-Switch is a lightweight C# port of F#'s result and option types to support 'railway oriented' programming patterns. Focus on the happy path, without loosing error information.

Language: C# - Size: 965 KB - Last synced at: 26 days ago - Pushed at: 26 days ago - Stars: 25 - Forks: 3

linkdd/rustic_result

Result monad for Elixir inspired by Rust Result type

Language: Elixir - Size: 35.2 KB - Last synced at: about 1 month ago - Pushed at: almost 2 years ago - Stars: 22 - Forks: 1

basicpp17/result17

A rust like Result type for modern C++

Language: C++ - Size: 25.4 KB - Last synced at: over 1 year ago - Pushed at: over 6 years ago - Stars: 19 - Forks: 4

moonad-dotnet/moonad

A simple F#'s monads port for C#.

Language: C# - Size: 230 KB - Last synced at: 3 months ago - Pushed at: 9 months ago - Stars: 18 - Forks: 0

Adedoyin-Emmanuel/tsfluent

Fluent Result Type for TypeScript

Language: TypeScript - Size: 113 KB - Last synced at: 4 months ago - Pushed at: 11 months ago - Stars: 18 - Forks: 2

lukemorales/funkcia

Encode failure and absence of value in TypeScript

Language: TypeScript - Size: 644 KB - Last synced at: 17 days ago - Pushed at: 10 months ago - Stars: 16 - Forks: 0

straw-hat-team/beam-monorepo

Monorepo for the open-source packages

Language: Elixir - Size: 1.34 MB - Last synced at: 9 days ago - Pushed at: 10 days ago - Stars: 12 - Forks: 4

minikin/result_type

💊 Result Type for Dart represents either a success or a failure, including an associated value in each case.

Language: Dart - Size: 84 KB - Last synced at: 2 months ago - Pushed at: over 1 year ago - Stars: 12 - Forks: 1

johannschopplich/resultx

🤝 Minimalist, strongly-typed result pattern for TypeScript

Language: TypeScript - Size: 336 KB - Last synced at: 3 months ago - Pushed at: 10 months ago - Stars: 10 - Forks: 0

Nicolab/crystal-result

:gem: Rust-like error handling for Crystal (`Ok` / `Err`)

Language: Crystal - Size: 129 KB - Last synced at: 5 months ago - Pushed at: almost 5 years ago - Stars: 10 - Forks: 0

thinker227/Rascal

A simple yet powerful result type implementation for C#.

Language: C# - Size: 224 KB - Last synced at: 2 months ago - Pushed at: about 1 year ago - Stars: 8 - Forks: 0

marinasundstrom/OptionAndResultConcept

Concept for Result and Option types in C#/.NET

Language: C# - Size: 7.81 KB - Last synced at: 3 months ago - Pushed at: over 3 years ago - Stars: 8 - Forks: 1

anicholson/result.cr

Result monad for Crystal

Language: Crystal - Size: 14.6 KB - Last synced at: almost 3 years ago - Pushed at: about 5 years ago - Stars: 8 - Forks: 0

guillermocalvo/resultlib

🎱 Elegant error handling in C

Language: C - Size: 16.6 MB - Last synced at: 7 months ago - Pushed at: 7 months ago - Stars: 7 - Forks: 1

maximegel/railsharp

A small railway oriented library in C#

Language: C# - Size: 721 KB - Last synced at: 5 months ago - Pushed at: over 6 years ago - Stars: 7 - Forks: 0

adamhl8/ts-explicit-errors

A TypeScript error handling library for treating errors as values

Language: TypeScript - Size: 416 KB - Last synced at: 1 day ago - Pushed at: 25 days ago - Stars: 6 - Forks: 0

choonkeat/sumtype-go

Fastest and simplest pattern matching sum types in Go. Don't be jealous of Rust anymore.

Language: Go - Size: 37.1 KB - Last synced at: 3 months ago - Pushed at: over 1 year ago - Stars: 6 - Forks: 0

MisterKaiou/go-functional

Small library with some known monads used in functional programming

Language: Go - Size: 63.5 KB - Last synced at: 6 months ago - Pushed at: about 3 years ago - Stars: 6 - Forks: 1

joyalserrao/DemoVIPER

VIPER Arch , Codable & Result types Swift 5

Language: Swift - Size: 197 KB - Last synced at: over 2 years ago - Pushed at: over 5 years ago - Stars: 6 - Forks: 1

valbeat/php-result

Result type for PHP

Language: PHP - Size: 127 KB - Last synced at: about 1 month ago - Pushed at: about 1 month ago - Stars: 5 - Forks: 0

nekronos/ResultSharp

Result type for C#

Language: C# - Size: 134 KB - Last synced at: 2 months ago - Pushed at: over 1 year ago - Stars: 5 - Forks: 3

kennethnym/trycat

trycat is a lightweight, type-safe, zero-dependency implementation of the Result type

Language: TypeScript - Size: 92.8 KB - Last synced at: 9 months ago - Pushed at: over 1 year ago - Stars: 5 - Forks: 0

adboco/Unsplasher-SDK

An Unsplash API client written in Swift.

Language: Swift - Size: 421 KB - Last synced at: 9 months ago - Pushed at: about 5 years ago - Stars: 5 - Forks: 5

pfpack/pfpack-core-taggeds

PrimeFuncPack Core.Taggeds is a core pack for .NET consisting of fundamental tagged types targeted for use in functional programming: Optional and Result monads, Tagged Union, as well as the convert extensions.

Language: C# - Size: 2.28 MB - Last synced at: 8 days ago - Pushed at: 10 days ago - Stars: 4 - Forks: 0

safwa1/SharpResults

A lightweight, zero-dependency C# library that implements the Result and Option types for more explicit and type-safe error handling. SharpResults helps you avoid exceptions for control flow and makes success/failure and presence/absence states explicit in your code.

Language: C# - Size: 174 KB - Last synced at: 3 months ago - Pushed at: 3 months ago - Stars: 4 - Forks: 2

tekord/php-result

Result object for PHP inspired by the Rust programming language

Language: PHP - Size: 38.1 KB - Last synced at: 9 months ago - Pushed at: 11 months ago - Stars: 4 - Forks: 0

tsukinoko-kun/opsult 📦

A simple implementation of Option, Result and Future types in TypeScript

Language: TypeScript - Size: 778 KB - Last synced at: 3 months ago - Pushed at: almost 3 years ago - Stars: 4 - Forks: 0

dgraham/option-type

An Option type for Flow, inspired by Rust.

Language: JavaScript - Size: 155 KB - Last synced at: 3 months ago - Pushed at: over 5 years ago - Stars: 4 - Forks: 0

eriveltondasilva/result.js

A lightweight, Rust-inspired Result type for JavaScript and TypeScript — handle success and error cases without exceptions.

Language: TypeScript - Size: 3.06 MB - Last synced at: 14 days ago - Pushed at: 16 days ago - Stars: 3 - Forks: 0

draekien-industries/waystone-dotnet

A collection of class libraries which implement useful patterns that can be used in .NET

Language: C# - Size: 352 KB - Last synced at: about 1 month ago - Pushed at: about 1 month ago - Stars: 3 - Forks: 0

jordyfontoura/TryLess

Type-safe error handling for TypeScript without try-catch hell

Language: TypeScript - Size: 501 KB - Last synced at: about 1 month ago - Pushed at: 2 months ago - Stars: 3 - Forks: 0

JustSteveKing/application-coordinator-pattern

A reference Laravel application demonstrating the Application Coordinator Pattern - a pragmatic architecture for orchestrating complex workflows without drowning in abstractions or losing the framework's elegance.

Language: Blade - Size: 79.1 KB - Last synced at: 11 days ago - Pushed at: 3 months ago - Stars: 3 - Forks: 0

jaydenfyi/tinyresult

A tiny, zero-dependency library for handling synchronous and asynchronous results with robust error handling

Language: TypeScript - Size: 210 KB - Last synced at: 3 months ago - Pushed at: 5 months ago - Stars: 3 - Forks: 0

benknab/patina

Type-safe error-handling and nothing-handling library for TypeScript

Language: TypeScript - Size: 559 KB - Last synced at: 3 months ago - Pushed at: 10 months ago - Stars: 3 - Forks: 0

kmartins/result_kt

Encapsulate a value as a success or an error as a failure using Result and execute a function using runCatching that returns a Result, both similar to those found in Kotlin.

Language: Dart - Size: 23.4 KB - Last synced at: 9 months ago - Pushed at: about 1 year ago - Stars: 3 - Forks: 2

Nikoo-Asadnejad/ResponseBase

ResponseBase is a return type of a service or api which can be implicitly converted to objectResult

Language: C# - Size: 92.8 KB - Last synced at: 7 months ago - Pushed at: over 1 year ago - Stars: 3 - Forks: 0

GregoryKogan/result

result is a C++ library that provides a Result type, which can be used to return and propagate errors. It's inspired by Rust's Result type.

Language: C++ - Size: 324 KB - Last synced at: 8 months ago - Pushed at: almost 2 years ago - Stars: 3 - Forks: 0

intales/resultify

A Dart package for result-oriented programming, providing Result<R, E> type with convenient methods for streamlined error handling.

Language: Dart - Size: 14.6 KB - Last synced at: 10 months ago - Pushed at: about 2 years ago - Stars: 3 - Forks: 0

BBB/result4t

A replacement for Promise that gives us a strongly-typed failure mode.

Language: TypeScript - Size: 884 KB - Last synced at: 3 months ago - Pushed at: about 2 years ago - Stars: 3 - Forks: 0

futurum-dev/dotnet.futurum.core

A dotnet library providing Option and Result data types, based on the concepts behind 'Railway Oriented Programming'

Language: C# - Size: 218 KB - Last synced at: 3 months ago - Pushed at: over 2 years ago - Stars: 3 - Forks: 0

fernandostockler/Result

Result class represents the result of an operation. If the operation succeeds, Result will contain the result of the operation, otherwise it will contain an exception that may or may not be thrown later.

Language: C# - Size: 80.1 KB - Last synced at: 3 months ago - Pushed at: almost 3 years ago - Stars: 3 - Forks: 0

singh-rajiv/honesty-dotnet

Write Honest functions in C# or convert Pure functions to Honest functions using Optional and Result monads. Combine them with LINQ and create extremely powerful functional compositions.

Language: C# - Size: 66.4 KB - Last synced at: 2 months ago - Pushed at: about 3 years ago - Stars: 3 - Forks: 0

jakehawken/Concurrency

A small toolkit for handling concurrency and simplifying asynchronous work in Swift.

Language: Swift - Size: 462 KB - Last synced at: 3 months ago - Pushed at: almost 4 years ago - Stars: 3 - Forks: 0

GoodeUser/Ergo.Result

A simple Result type to model an operation's ability to fail. Inspired by F#'s Result and "Railway Oriented Programming".

Language: C# - Size: 166 KB - Last synced at: 4 months ago - Pushed at: over 4 years ago - Stars: 3 - Forks: 0

MNie/ResultType

ResultType implementation in C#

Language: C# - Size: 52.7 KB - Last synced at: 4 months ago - Pushed at: about 5 years ago - Stars: 3 - Forks: 1

RezaArda/SharpResults

A lightweight, zero-dependency C# library that implements the Result pattern for more explicit and type-safe error handling. SharpResults helps you avoid exceptions for control flow and makes success/failure states explicit in your code.

Language: C# - Size: 17.6 KB - Last synced at: 6 days ago - Pushed at: 6 days ago - Stars: 2 - Forks: 0

totallymoney/DynamoDb.Ok

Functional wrapper around AWS DynamoDB client in F#

Language: F# - Size: 6.26 MB - Last synced at: about 1 month ago - Pushed at: about 1 month ago - Stars: 2 - Forks: 0

jdmartinez/Functional

Functional C# types

Language: C# - Size: 200 KB - Last synced at: about 1 month ago - Pushed at: about 1 month ago - Stars: 2 - Forks: 0

uni-ts/uni-ts

A set of utilities to make your TypeScript projects cleaner, safer, and more composable.

Language: TypeScript - Size: 255 KB - Last synced at: about 2 months ago - Pushed at: about 2 months ago - Stars: 2 - Forks: 0

ghaerdi/rustify

Rust-like error handling for TypeScript with Result, Ok, and Err types.

Language: TypeScript - Size: 70.3 KB - Last synced at: 2 months ago - Pushed at: 2 months ago - Stars: 2 - Forks: 0

mrxrsd/arpl

Lightweight C# library for functional error handling using Either and Result types. An advanced Result Pattern type-safe, expressive, and designed for clean code.

Language: C# - Size: 258 KB - Last synced at: about 2 months ago - Pushed at: 3 months ago - Stars: 2 - Forks: 0

fluxera/Fluxera.Results

A result object implementation.

Language: C# - Size: 128 KB - Last synced at: about 2 months ago - Pushed at: 5 months ago - Stars: 2 - Forks: 0

Felix-CodingClimber/DotNetElements.Core.Result

This project provides simple Result and Result<TValue> types to be used as return types of functions as an alternative to exceptions.

Language: C# - Size: 87.9 KB - Last synced at: about 1 month ago - Pushed at: 8 months ago - Stars: 2 - Forks: 0

kresult/kresult

An opinionated, functional result type for Kotlin

Language: Kotlin - Size: 776 KB - Last synced at: about 1 year ago - Pushed at: about 1 year ago - Stars: 2 - Forks: 0

fjellsoftware/javafunctionalutils

Library for functional programing in Java 17+ utilizing sealed types

Language: Java - Size: 32.2 KB - Last synced at: over 1 year ago - Pushed at: over 1 year ago - Stars: 2 - Forks: 0

misuken-now/smart-result

very smart result type

Language: TypeScript - Size: 23.4 KB - Last synced at: 4 months ago - Pushed at: almost 2 years ago - Stars: 2 - Forks: 0

Olian04/simply-result

Simply typesafe Result and Option monads in typescript and javascript.

Language: TypeScript - Size: 165 KB - Last synced at: 5 months ago - Pushed at: almost 2 years ago - Stars: 2 - Forks: 0

kazimkesler/Custom-Boolean-Type

Generic, Auto Type Inferenced Result type for API

Language: C# - Size: 13.7 KB - Last synced at: about 2 years ago - Pushed at: about 2 years ago - Stars: 2 - Forks: 0

ayasechan/go-result

Result and Option for golang

Language: Go - Size: 8.79 KB - Last synced at: over 2 years ago - Pushed at: over 2 years ago - Stars: 2 - Forks: 0

blainehansen/ts-std

A collection of libraries for truly safe and functional typescript.

Language: TypeScript - Size: 330 KB - Last synced at: 3 months ago - Pushed at: over 2 years ago - Stars: 2 - Forks: 0

schrosis/rus-ts

🦀 < Something like Rust with excellent type inference.

Language: TypeScript - Size: 123 KB - Last synced at: 5 months ago - Pushed at: about 3 years ago - Stars: 2 - Forks: 0

daddinuz/result

Result type holding a returned value or an error.

Language: C - Size: 73.2 KB - Last synced at: over 1 year ago - Pushed at: over 5 years ago - Stars: 2 - Forks: 0

ghostwriter/result

Provides a Result type implementation for PHP

Language: PHP - Size: 47.3 MB - Last synced at: 5 days ago - Pushed at: 5 days ago - Stars: 1 - Forks: 0

kcenon/common_system

🔧 Modern C++20 header-only library providing common interfaces, Result<T> pattern, and design patterns for modular system architecture

Language: C++ - Size: 2.71 MB - Last synced at: 7 days ago - Pushed at: 8 days ago - Stars: 1 - Forks: 0

Fikoko/Canon-C

Semantic utility library for C: Result/Option types, containers, and explicit helpers for safer, clearer C code.

Language: C - Size: 82 KB - Last synced at: 8 days ago - Pushed at: 9 days ago - Stars: 1 - Forks: 0

initdc/rs-result

Bring the Rust [Result Option] types to Ruby

Language: Ruby - Size: 40 KB - Last synced at: 12 days ago - Pushed at: 13 days ago - Stars: 1 - Forks: 0

initdc/types.cr

Bring the Rust [Result Option] types to Crystal

Language: Crystal - Size: 18.6 KB - Last synced at: 15 days ago - Pushed at: 15 days ago - Stars: 1 - Forks: 0

MattDoonan/DDD-Core-Helpers

A lightweight helper library for implementing Domain-Driven Design (DDD) in .NET applications.

Language: C# - Size: 451 KB - Last synced at: 15 days ago - Pushed at: 16 days ago - Stars: 1 - Forks: 0

initdc/types

Bring the Rust [Result Option] types to Golang

Language: Go - Size: 22.5 KB - Last synced at: 15 days ago - Pushed at: 17 days ago - Stars: 1 - Forks: 0

wiz-develop/php-monad

📦 Implemented the concept of monads in functional programming in PHP.

Language: PHP - Size: 265 KB - Last synced at: about 1 month ago - Pushed at: about 1 month ago - Stars: 1 - Forks: 0

iharuya/rustacean-ts

A library to help you write TypeScript like a Rustacean

Language: TypeScript - Size: 18.6 KB - Last synced at: 2 months ago - Pushed at: 2 months ago - Stars: 1 - Forks: 0

LiteObject/Functional.Programming.With.CSharp

Practical functional programming patterns in C# - Examples of Option/Result types, function composition, immutability, and railway-oriented programming

Language: C# - Size: 32.2 KB - Last synced at: 3 months ago - Pushed at: 3 months ago - Stars: 1 - Forks: 0

Hernanatn/errores--

Librería de C++ que provee abstracciones genéricas para el manejo de errores, valores opcionales y resultados de operaciones.

Language: C++ - Size: 49.7 MB - Last synced at: 2 months ago - Pushed at: 7 months ago - Stars: 1 - Forks: 0

AbianS/safetry

A TypeScript library for safe error handling with Result types

Language: TypeScript - Size: 44.9 KB - Last synced at: 3 months ago - Pushed at: 7 months ago - Stars: 1 - Forks: 0

siboxd/kotlin-result-extension Fork of craigmiller160/kotlin-result-extension

This project adds several new methods to the Kotlin Result (`kotlin.Result<T>`) type to facilitate more robust, functional-style error handling. These extensions (like `flatMap`) unleash all the "monadic power" of `kotlin.Result`, making it a real Monad.

Language: Kotlin - Size: 95.7 KB - Last synced at: 9 months ago - Pushed at: 9 months ago - Stars: 1 - Forks: 0

ScottBoyce-Python/ResultContainer

ResultContainer is a Python library inspired by Rust's Result enum, designed for robust error handling. It seamlessly supports mathematical operations, attribute access, and method chaining on Ok(value), while automatically transitioning to Err(e) upon encountering errors, ensuring continuous error tracking and logging.

Language: Python - Size: 152 KB - Last synced at: 12 months ago - Pushed at: 12 months ago - Stars: 1 - Forks: 0

olivierbellone/r

Rust-like Result type for Ruby

Language: Ruby - Size: 2.43 MB - Last synced at: about 1 year ago - Pushed at: about 1 year ago - Stars: 1 - Forks: 1

opflucker/NetCoreResults

Minimal Result Monad Implementation

Language: C# - Size: 62.5 KB - Last synced at: about 2 months ago - Pushed at: over 1 year ago - Stars: 1 - Forks: 0

dominic-codespoti/common-commons

A common set of C# extensions, models and helpers usually brought into personal projects of mine.

Language: C# - Size: 38.1 KB - Last synced at: 11 months ago - Pushed at: about 2 years ago - Stars: 1 - Forks: 0

futurum-dev/dotnet.futurum.test

A dotnet testing library, allowing you to test code that uses Futurum.Core

Language: C# - Size: 61.5 KB - Last synced at: 5 months ago - Pushed at: over 2 years ago - Stars: 1 - Forks: 0

futurum-dev/dotnet.futurum.core.polly

Small dotnet library, allowing you to use Polly with Futurum.Core, based on the concepts behind 'Railway Oriented Programming'.

Language: C# - Size: 63.5 KB - Last synced at: 5 months ago - Pushed at: almost 3 years ago - Stars: 1 - Forks: 0

mohammadmoqadam/ReeResult

Create Standard And Generic Result For Rest Services in .Net And C#

Language: C# - Size: 41 KB - Last synced at: 5 months ago - Pushed at: over 3 years ago - Stars: 1 - Forks: 0

TheTrueTrooper/AngelASPMVCExtensions

A set of Extention Methods That allow for easy bundling from anywhere and razor templating to a string. Maybe template a Email using razor?

Language: C# - Size: 4.24 MB - Last synced at: almost 3 years ago - Pushed at: over 3 years ago - Stars: 1 - Forks: 0

saccho/crab

Provides Rust-like Result and Option types.

Language: Dart - Size: 35.2 KB - Last synced at: 3 months ago - Pushed at: almost 4 years ago - Stars: 1 - Forks: 0

hsequeda/fpts-monads

An implementation of the Result and the Optional FP monad in Typescript. This library was inspired by the handling of these monads in the standard Rust library. Asynchronous functions can be chained.

Language: TypeScript - Size: 118 KB - Last synced at: 3 months ago - Pushed at: almost 4 years ago - Stars: 1 - Forks: 0