-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I feel naming inconsistency with beginswith
.
#9578
Comments
I have to say that this has bugged me slightly for about two years, but never enough to try to come up with a justification. So, +1! |
+1 for renaming |
I'm almost ready to create a pull request. |
This is it: #9583 (didn't GitHub automatically create a cross-link to a referring pull request?) |
Apparently not when you referenced the issue number in the headline, not the body of the pull request. |
🚲 🏠 |
Is there any way to turn that into a tag? ;-) |
That tag would probably get used on half the issues... |
😑 |
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:
seekstart
start
start_timer
and no other functions use the word "begin" except
beginswith
.So I believe it would be better to rename
beginswith
tostartswith
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 asbeginswith
does.The text was updated successfully, but these errors were encountered: