1 repository
Conditional branches that return specific container types based on boolean expressions.
Distinct from Conditional Expression Returns: Focuses on returning monadic containers instead of raw values from conditional expressions.
Explore 1 awesome GitHub repository matching software engineering & architecture · Containerized Result Returns. 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
Allows returning a specific container type based on a boolean expression as a declarative alternative to if-else statements.