Skip to content

IDEA: allow strings to be used in place of operators A.mxm(B, 'min.+') #148

@eriknw

Description

@eriknw

We now have op.from_string, unary.from_string, etc., functions that are used to get an operator from a string. It would be straightforward to allow strings to be used wherever operators are used, such as:

  • A.mxm(B, "min.+")
  • A.apply("+", 1)
  • C("+") << A
    • we'll need to distinguish "replace" string from operator strings

This is sugar, and, hence, pretty low priority. Thoughts?

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