-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
broadcastApplying a function over a collectionApplying a function over a collectioncollectionsData structures holding multiple items, e.g. setsData structures holding multiple items, e.g. sets
Description
Is there a consensus on what to do about broadcasting named tuples and dicts? Currently (Julia 1.1):
julia> sin.((a=1,))
ERROR: ArgumentError: broadcasting over dictionaries and `NamedTuple`s is reserved
I'm asking because I'm pondering to make structs defined with @with_kw of Parameters.jl automatically not broadcast mauro3/Parameters.jl#70. However, it would also be nice, if named tuples and dicts would work as drop-in for @with_kw structs. Thus, will they broadcast as scalars or as containers?
x-ref: #26212; add milestone?
RaulDurand, Hugo-Trentesaux, lassepe, nm17, schneiderfelipe and 3 more
Metadata
Metadata
Assignees
Labels
broadcastApplying a function over a collectionApplying a function over a collectioncollectionsData structures holding multiple items, e.g. setsData structures holding multiple items, e.g. sets