what's the deal with Array{T}(::Nothing, ...)
?
#27700
Labels
arrays
[a, r, r, a, y, s]
design
Design of APIs or of the language itself
missing data
Base.missing and related functionality
needs decision
A decision on this change is needed
I just noticed we have these constructors:
The odd thing about these is you have to specify an element type, even though there's only one thing it could be --- e.g. you must write
Array{Nothing}(nothing, m, n)
. I propose we do at least one of the following:fill
instead.MyArray(repeated(x), ...)
can be used to construct any array filled with any value.The text was updated successfully, but these errors were encountered: