Skip to content

Feature request: Named type parameters #32632

@MasonProtter

Description

@MasonProtter

As a 2.0 feature, I think we could add a lot of clarity (at the price of some verbosity) if one were allowed to name type parameters a la NamedTuples. For example AbstractArray{eltype=T, dim=N} would give a lot of clarity at a glance.

This gets even better when you consider subtypes. For example, if you show me aStaticArray{Tuple{3, 3}, Float64, 2, 9} I might not know what the heck I'm looking at, whereas StaticArray{size=Tuple{3, 3}, eltype=Float64, dim=2, length=9} is quite helpful at at glance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requests

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions