Skip to content

I feel naming inconsistency with beginswith. #9578

Description

@bicycle1885

We have the beginswith function to check whether a string begins with a given prefix.
This is good, I often use it. But its name looks inconsistent compared to other function names in Julia.

To list some, other functions use "start" in their name:

and no other functions use the word "begin" except beginswith.
So I believe it would be better to rename beginswith to startswith for consistency.
I want to know how you feel about this (maybe too trivial to think).

As a reference, Python has the str.startswith method, which works in the same way as beginswith does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedIndicates that a maintainer wants help on an issue or pull request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions