Skip to content

Base.Broadcast.promote_containertype improvements #21534

Open
@TotalVerb

Description

@TotalVerb

As has been noted in the past, and again here, adding new containertypes to broadcast tends to involve adding many new methods. For example, in practice methods seem to come in pairs, one for each argument order. (see e.g. https://github.com/davidanthoff/DataValues.jl/pull/9/files#r113047389)

Perhaps we can borrow some techniques from number type promotion (e.g. the relationship between promote_type and promote_rule) to cut down on the number of methods needed.

cc @Sacha0, @pabloferz

Metadata

Metadata

Assignees

No one assigned

    Labels

    broadcastApplying a function over a collectioncollectionsData structures holding multiple items, e.g. sets

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions