Skip to content

Add defalg methods to resolve potential dispatch ambiguities #43426

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

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Dec 15, 2021

We could also consider adding defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE, but it is unlikely that someone will want to do Union of <:Number and something other than Missing that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21 (and other custom types that will want to add defalg support allowing for Union with Missing).

Preferably this should be backported I think.

We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`, but it is unlikely that someone will want to do `Union` of `<:Number` and something other than `Missing` that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21 (and other custom types that will want to add `defalg` support allowing for `Union` with `Missing`).

Preferably this should be backported I think.
@CarloLucibello
Copy link
Contributor

Can this be merged and backported?

@vtjnash vtjnash merged commit eb724e0 into JuliaLang:master Jan 18, 2022
@vtjnash
Copy link
Member

vtjnash commented Jan 18, 2022

I am not sure about the backport, since that seems harder for packages to support

@bkamins bkamins deleted the patch-27 branch January 18, 2022 19:49
N5N3 pushed a commit to N5N3/julia that referenced this pull request Jan 24, 2022
…ng#43426)

We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`,
but it is unlikely that someone will want to do `Union` of `<:Number`
and something other than `Missing` that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21
(and other custom types that will want to add `defalg` support allowing
for `Union` with `Missing`).
@caseykneale
Copy link
Contributor

@vtjnash - on our long-term support builds we have recently run into an issue where upgrading CSV.jl to it's latest version(0.10.2) creates the issue @bkamins is resolving here. Getting this backported for the current LTS would be helpful for us(RelationalAI) as it could get us some performance wins both short and long term. Is there something blocking the backport or can it be added onto the roadmap?

@KristofferC KristofferC added backport 1.6 Change should be backported to release-1.6 backport 1.7 labels Feb 12, 2022
@KristofferC
Copy link
Member

Added

@caseykneale
Copy link
Contributor

Thank you!

KristofferC pushed a commit that referenced this pull request Feb 15, 2022
We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`,
but it is unlikely that someone will want to do `Union` of `<:Number`
and something other than `Missing` that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21
(and other custom types that will want to add `defalg` support allowing
for `Union` with `Missing`).

(cherry picked from commit eb724e0)
@KristofferC KristofferC mentioned this pull request Feb 15, 2022
40 tasks
KristofferC pushed a commit that referenced this pull request Feb 19, 2022
We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`,
but it is unlikely that someone will want to do `Union` of `<:Number`
and something other than `Missing` that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21
(and other custom types that will want to add `defalg` support allowing
for `Union` with `Missing`).

(cherry picked from commit eb724e0)
@KristofferC KristofferC mentioned this pull request Feb 19, 2022
50 tasks
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
…ng#43426)

We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`,
but it is unlikely that someone will want to do `Union` of `<:Number`
and something other than `Missing` that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21
(and other custom types that will want to add `defalg` support allowing
for `Union` with `Missing`).
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
…ng#43426)

We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`,
but it is unlikely that someone will want to do `Union` of `<:Number`
and something other than `Missing` that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21
(and other custom types that will want to add `defalg` support allowing
for `Union` with `Missing`).
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label May 16, 2022
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
We could also consider adding `defalg(v::AbstractArray{<:Number}) = DEFAULT_UNSTABLE`,
but it is unlikely that someone will want to do `Union` of `<:Number`
and something other than `Missing` that still would support comparison.

Relevant for JuliaStrings/InlineStrings.jl#21
(and other custom types that will want to add `defalg` support allowing
for `Union` with `Missing`).

(cherry picked from commit eb724e0)
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.

5 participants