-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Overview
Add support for named implicits wrappers - closure factories that capture implicit dependencies at definition time and provide them when invoked later.
Usage Pattern
// Define wrapper usage
withFooImplicits { scope in
requires(scope)
}
// With additional parameters
withFooImplicits { (arg1: Int, arg2: String, scope) in
// use arg1, arg2, and implicits via scope
}Implementation Tasks
- Basic wrappers (synchronous, non-throwing)
- Async/throws support (auto-detect from closure body)
-
#withImplicitsmacro for anonymous wrappers - Documentation
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request