Skip to content

Allow users to define "dot" vectorized operators. #14544

Closed

Description

I think it wold be nice if users could define their own dot vectorized operators, some examples are in (.in/.∈), and is (.is / .===). This is the more julian thing to do IMHO (think of identifiers with a bang also foo!), this would also allow us to use this functions as infix operators, similar to the now vast array of symbols that we can choose from as infix operators for user defined purposes.

Refs:

This would be an easy solution for the user needs (see DataFramesMeta suggestion to use a macro within a macro and change non dot operator semantics, when a function would be enough) without having to implement such methods in Base, selectively add (and debate) such operators for just a few of them (most would never make it into Base), instead this proposal would generalize dot vectorized operators into a common julian thing to do.

cc @JeffBezanson @StefanKarpinski @nalimilan

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

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