Skip to content

Ambiguity issue in broadcasting. #354

@ptiede

Description

@ptiede

This came up in rafaqz/DimensionalData.jl#1195

Essentially, it appears that StructArrays is defining its Broadcasting precedence incorrectly. The Julia interface's docs for binary broadcasting rules make this pretty clear https://docs.julialang.org/en/v1/manual/interfaces/#writing-binary-broadcasting-rules

It looks like essentially we should delete this line of code

BroadcastStyle(::StructArrayStyle, ::DefaultArrayStyle) = Unknown()

I'll make a PR shortly that removes this and examine what, if anything, breaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions