Skip to content

Named Implicits Wrappers Feature #5

@zienag

Description

@zienag

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)
  • #withImplicits macro for anonymous wrappers
  • Documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions