Skip to content

Feature Request: Common metric class traits #44

@dgkf

Description

@dgkf

Originally posted by @dgkf in #43 (comment)

This idea boils down to having combinators that add new validators to an S7 class and apply additional constraints, so that

class_integer + scalar + finite

Actually produces a new class object with additional validators.

It's quite exploratory, but it seems like there's interest in something like this. There's some talk in S7 about adding scalar classes -- so this might be supported out-of-the-box in the future (RConsortium/S7#554).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions