sort: improve implementation #45422
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Can slice sorting be re implemented? After reading the code, I found that slice sorting relies on a genzfunction. The function of this program is to copy sort a piece of code and make some minor modifications. I wonder if I can extract a common interface to simplify this part of logic and remove the genzfunction dependency.
I think it's possible to extract a lessswap interface? To achieve the same purpose, for example
quickSort
Change the parameter to the following typeWhat do you think of this proposal? I think this can reduce the complexity of maintenance
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: