Skip to content
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

verb suggestions #60

Closed
sleak-lbl opened this issue Mar 26, 2021 · 2 comments
Closed

verb suggestions #60

sleak-lbl opened this issue Mar 26, 2021 · 2 comments

Comments

@sleak-lbl
Copy link

This is a fantastic idea! I hope it becomes a common convention.

Related to #20, replacing remove with drop might help to avoid the remove/delete ambiguity.

I'm looking for what to call something that returns an iterator (in python), and think that collect is another good verb (for i in foo.collectBars())

@kettanaito
Copy link
Owner

Thanks, @sleak-lbl!

replacing remove with drop might help to avoid the remove/delete ambiguity.

It's a good suggestion, yet I'm not sure how agnostic "drop" is as a verb. It certainly comes to various languages adopting different vocabulary, but as a JavaScript engineer, I almost never see "drop" as an action in any API I use. Perhaps, dropping a database would be an exception.

@kettanaito
Copy link
Owner

I'm going to close this. I hope that the current state of the doc explains the difference between the ambiguous remove/delete. I once again remind everybody that these are just guidelines. You can certainly deviate. And what makes any guidelines good is finiteness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants