Skip to content

Compute supertype parameters #7

Open
@Oblynx

Description

@Oblynx

I experimented with the following behavior, which is not supported by this package:

struct CustomArray{N1,N2} <: AbstractArray{Int, N1+N2}
  ...
end

The intent is to define 2 different kinds of dimensions for the array, which have a semantic difference. There is of course the same workaround of explicitly passing the expression N1+N2 as a 3rd type parameter.

Please consider this as a feature request, if this use case is convincing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions