Base.Broadcast.promote_containertype
improvements
#21534
Labels
broadcast
Applying a function over a collection
collections
Data structures holding multiple items, e.g. sets
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
andpromote_rule
) to cut down on the number of methods needed.cc @Sacha0, @pabloferz
The text was updated successfully, but these errors were encountered: