-
-
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
Rename buffer to scratch in sorting #47172
Conversation
Rereading the discussion in #45330 , I also just noticed that this isn't documented in the |
I quite like this name. Much clearer imo than "buffer"; the main issue I have with "buffer" is that it is often used for input or output vectors. This is neither—it is only used as a temporary scratch space during the sorting operation and I don't think there's a clearer or more concise name that conveys that than |
+1 for |
I considered that but the name is used internally and having it be longer than necessary is therefore annoying. I'm not sure |
A curated list courtesy autocomplete: the scratchard equation, scratcharia, scratchnapped, scratchmen apoo, scratch-o, scratchtasia |
Yes. It's not part of the public API because it is new so we might want to change it and nobody has requested that it become a part of the public API. Unlike most features, this one does not suffer much from being internal because its main use case is high-level sorting functions such as |
sort!(x; buffer)
=>sort!(x; scratch)
It's not too late to rename this again if folks want to. This has never been public, documented, or part of a release or release candidate.
This PR is very similar to #45711
From @StefanKarpinski's comment here: #45222 (comment)
cc those who have previously expressed interest in the name of this thing: @oscardssmith @musm @StefanKarpinski @pcjentsch @longemen3000 @mkitti @jw3126 @halleysfifthinc @nalimilan