-
Notifications
You must be signed in to change notification settings - Fork 17
Reference: in(Fold) Description and Reorder #66
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
Conversation
What do you think about changing list to |
I'm not sure of any other instances of "container" to describe an argument that can vary in type. I kept "list" as that seems to be what other functions use in similar cases. While list may have originally represented the type slice, it could also be interpreted as "a list of types." I don't know of a correct way to go about this. If we were to change the terminology used to describe varying type arguments, then many other instances of "list"; which isn't a big deal, just putting it out there as a reminder. |
I thought of changing "list" to "value" and "value" to "subvalue", but didn't want to change too much in one go. With this, syntax for I think this would be quite easy to explain, but the double instance of "value" could throw some people off. |
I think |
I think we stick with list so far. Long shot, but sequence could possibly confuse readers with the |
Which other instances of list are you thinking of? To me, it seems inaccurate to describe it as a list, as if E.x. I think it’s logically accurate to say a list contains items, Could also maybe consider needle and haystack, |
Ha ha I also considered that exactly but discarded it too |
I think sequence does read better to me than list, yeah. |
First instance I noticed of list used in place of an argument that can vary in type is I didn't see the relation you made when suggesting container at first. With |
Are we saying sequence as in a sequence of values or characters, to represent both slices and strings, respectively? |
I think index differs in that it is accurate to say a string is |
Yes, it's a more technically correct description of strings than I think "Returns whether the [string] is in the sequence", substituting 'value', makes sense both for strings and slices. |
Ok, yes, that makes more sense. I will make that change now. |
…tax and descriptions
Personally, I'm not a fan of "Same as in." What are y'all's thoughts on instead copying |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Unfortunately I haven't yet set up the lint workflow to add comments by itself--this is its output on your modified files)
Thanks for the PR (and sorry for the very late actual response). It is my understanding that all voiced concerns have been addressed—is that the case? I'll mark this as approved for now and merge it ~this weekend, given no new details pop up. |
In that case, all is good. Thanks! |
This PR adds to the description of the
in
andinFold
functions of custom command reference to specify the first argument of the functions can be a slice or string.This PR also reorders the mentioned functions so that
inFold
followsin
, which both allowsinFold
's description to base off ofin
's description and follows the order as seen with thereFind
family of functions.Terms