1 repo
Using generator functions to implicitly handle and propagate errors within a block.
Distinct from Monadic Error Handling: Distinct from general monadic handling by focusing on the generator-based implementation for boilerplate reduction.
Explore 1 awesome GitHub repository matching software engineering & architecture · Generator-Based Error Propagation. Refine with filters or upvote what's useful.
neverthrow is a TypeScript result type library that implements railway oriented programming. It provides a functional error handling framework using type-safe wrappers to represent operation outcomes as either success or failure variants, eliminating the need to throw exceptions. The library features adapters that convert throwing functions and asynchronous promises into typed result objects. This allows asynchronous rejections and unsafe code to be handled as explicit return values rather than uncaught exceptions. The framework covers a broad range of functional computation capabilities, in
Utilizes generator functions and yield expressions to implicitly handle errors and unwrap success values.