Skip to content
This repository was archived by the owner on Sep 11, 2026. It is now read-only.
This repository was archived by the owner on Sep 11, 2026. It is now read-only.

Implicit per-call context #179

Description

@ramonasuncion

Add an implicit context so a scope can swap the allocator or logger for an entire call tree without passing it as a parameter.

Proposed syntax:

context.allocator = myAlloc {
    foo();  // bar and baz inside also see myAlloc
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions