-
-
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
Status of uniqueind
groupslices
etc.
#35945
Comments
Seems overly complex to include. What wrong with letting it be a package? |
The code hosted under the name |
These are at odds with each other. You've expressed on various occasions that you want more things to go into the stdlibs or Base in order to be better maintained, and while I appreciate the vote of confidence implied by being volunteered to maintain more code, frankly Base is where complex APIs like this go to die. If we put this in Base, they we would literally never touch it again except to fix clear bugs since anything else would change the API in some way and is therefore not allowed. There was a reason this didn't get merged into Base after all those discussions: the best API was very non-obvious. It is much better for this to live in an external package and be able to evolve and improve its API. Perhaps moving it to @JuliaCollections would be good though. |
I agree. I just thought that in this specific case, almost all the code is already there in Base and one would just need to provide a keyword argument to return the indices. Wouldn't that be reasonable? I also agree that a more general package could be started in @JuliaCollections, but since currently we don't have an example package that incorporates this single feature discussed here, I think it may still make sense to add this keyword argument or some other variant name like |
This is the problem—that internal code becomes a huge boat anchor as soon as you expose it. I don't want to do that. I'd much rather duplicate some code and/or have an external package depend on some internal detail and then have other code depend on that, so that if we change the internal thing in Julia there's only one place to fix instead of many of them. |
Will close the issue then, thanks for clarifying 👍 I've ended up copying/pasting the code in GroupSlices.jl in my own package to avoid a dependency on a package with a single function. |
I've closed this issue but I still think the current state of affairs is suboptimal. Every time I need this "unique indices" functionality I end up copying/pasting that function from GroupSlices.jl in multiple places because depending on a tiny package with a single function is not ideal. |
Based on previous issues, it is not clear if there are plans to incorporate the implementation of
groupslices
fromGroupSlices.jl
into Base. This function is quite common when one needs to just find theunique
columns in a large array for further processing.Past discussions include:
The current registered version of
GroupSlices.jl
in Julia 1.x is a fork from the original author's version. Any chance this functionality could be part of Julia v1.5?The text was updated successfully, but these errors were encountered: