Skip to content

Rename occursin to something more reasonable  #30368

@musm

Description

@musm

Everytime I encounter this function I visually parse it as occur_sin, and personally find it ugly.
From slack there seems to be a lot of people that share this sentiment. It might be good to rename this function.

I tried searching for other programming languages that use the name occursin. I found some usages where it was spelled as occursIn in Java, which would more closely translate to occurs_in in Julia (however I'm not a fan of the underscore and this is something that Base Julia tries to avoid in general).

Stefan threw out the following in the thread:

matches would still be reasonable, or even search

and later on threw out: ismatch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions