Skip to content

Make an isdense trait #54715

@LilithHafner

Description

@LilithHafner

Density is orthogonal to many types (e.g. StaticArray, CodeUnits, SubArray, etc) so it makes more sense as a trait instead of an abstract type.

As a starting point,

isdense(::DenseArray) = true
isdense(::Array) = false
isdense(::String) = true # Maybe

Maybe also applies to strings?

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]designDesign of APIs or of the language itselffeatureIndicates new feature / enhancement requests

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions