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

[NDTensors] Remove sort(Tuple) in favor of version in Compat #1169

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

mtfishman
Copy link
Member

Description

sort(::NTuple) was introduced in Julia 1.10 (JuliaLang/julia#46104), and can be added to older Julia versions using Compat.jl 4.9 (JuliaLang/Compat.jl#804), so we can now remove our own version of it, which wasn't a good idea to have anyway since it is type piracy (see also #1164).

@mtfishman mtfishman merged commit 46bfe41 into main Aug 2, 2023
@mtfishman mtfishman deleted the NDTensors_rm_sort_tuple branch August 2, 2023 12:29
@martinholters
Copy link

As sort(::Ntuple) has been removed from Julia (and will not be part of 1.10), it will also be removed from Compat (see JuliaLang/Compat.jl#812), so you need to re-add this code (but preferable as a separate function, not committing type-piracy again.)

@KristofferC
Copy link

Yeah, just name it sort_tuple and call that.

@mtfishman
Copy link
Member Author

Ok, thanks for the heads up.

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

Successfully merging this pull request may close these issues.

3 participants