Skip to content

Inconsistency in constructing Dict and Array #3214

Closed

Description

Both Dict and Array are parametric types. Constructing a Dict and an Array of variable size differs markedly, though:
* Dict{TypeA,TypeB}()
* Array(Type) while Array{Type}() doesn't work
This creates some confusion for people new to the language – also I think its inconsistent design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    needs decisionA decision on this change is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions