Skip to content

Use a specific Literal to decide how to apply wrap_kvs trans functions.  #12

Description

@thorwhalen

Proposal: Use FirstArgIsMapping(Literal)

A Literal class to mark a function as being one where the first argument is
a mapping (store). This is intended to be used in wrappers such as wrap_kvs
to indicate when the first argument of a transformer function trans like
key_of_id, preset, etc. is the store itself, therefore should be applied as
trans(store, ...) instead of trans(...).

┆Issue is synchronized with this Asana task by Unito

Activity

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

Metadata

Metadata

Assignees

Labels

breaking-changeFix likely changes public behavior/API; needs dependents test-gateenhancementNew feature or requestpriority: highTackle first — high leverage/impactrefactorwrap_kvsThe wrap_kvs / store_decorator / Store.wrap core machinery

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions