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.
Both Dict and Array are parametric types. Constructing a Dict and an Array of variable size differs markedly, though:
*
Dict{TypeA,TypeB}()*
Array(Type)whileArray{Type}()doesn't workThis creates some confusion for people new to the language – also I think its inconsistent design.