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.
We have the
beginswithfunction 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:
seekstartstartstart_timerand no other functions use the word "begin" except
beginswith.So I believe it would be better to rename
beginswithtostartswithfor consistency.I want to know how you feel about this (maybe too trivial to think).
As a reference, Python has the
str.startswithmethod, which works in the same way asbeginswithdoes.