1 repository
Evaluating the state of a container (e.g., Some vs None, Success vs Failure) to branch logic.
Distinct from Pattern Matching: Focuses on the sum-type state of functional containers rather than general data structure matching.
Explore 1 awesome GitHub repository matching programming languages & runtimes · Container State Matching. Refine with filters or upvote what's useful.
Returns is a functional programming library for Python that provides type-safe containers for managing state, error handling, and optionality. It serves as a monadic container library and a type-safe error handling framework, replacing traditional try-catch blocks and null checks with Result and Optional containers to treat exceptions as data. The project is distinguished by its use of a specialized Mypy static analysis plugin to validate functional pipelines and emulate higher kinded types. It provides mechanisms for isolating side effects through IO containers and offers a framework for typ
Uses structural pattern matching to execute logic based on whether a value is present or missing in a container.