Skip to content

select_problems dispatch relies on Pair's questionable promotion behavior #4

@adienes

Description

@adienes

in JuliaLang/julia#58836, triage desires to remove the promote_rule defined for Pair (and Some) as to make it consistent with every other container type in the language

I am going through the results of the Nanosoldier run so as to avoid as much potential downstream impact as possible.

I noticed that the implementation here relies on the fact that Pair promotes pretending to be covariant (like Tuple is) when in fact it is not.

looking at the code, my first impression is that it would suffice here to set
const SubSet = Pair as a bare alias rather than Pair{<:Integer,<:AbstractVector{<:Integer}} , do you have any thoughts on that approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions