-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rename .list.lengths
and .str.lengths
#11577
Comments
Yup, While I don't mind |
Woops, fixed. Yeah maybe we should leave out Not 100% yet on @ritchie46 want to make the decision here? |
I want to go for |
One important thing to consider regarding
currently we have Because strings are different from lists and arrays I suggest 2 functions
what do you think? |
I think this deprecation to Going by the design of the rest of the API, |
I think adding the third "generic" @ritchie46, @stinodego: It does raise a good point though, we have gone to the trouble of having two expressions to account for this; perhaps unifying them both under
|
I don't really like that so much. Most unexperienced users will pick But I do agree that |
I was actually thinking the same that some users might pick
|
@stinodego I don't think that |
Yeah I am coming around on the idea of
|
Description
As mentioned by @alexander-beedie in #11462 (comment)
lengths
is a weird name, being plural. I started renaming it tolength
, but then I figured.len
would also be an option (bothSeries
andExpr
have a method calledlen
), and in the case of the list namespace,count
also makes sense.We generally prefer fully spelled out names (i.e.
length
instead oflen
), but both Rust and Python havelen
as the naming convention:So I would propose to:
.list.lengths()
, add.list.len()
as the replacementand add.list.count()
.str.lengths()
, add.str.len()
as the replacement.Thoughts?
The text was updated successfully, but these errors were encountered: