Skip to content

Commit 92bad43

Browse files
committed
Add NEWS.md entry for deprecation of Array(T, dims...) (#19989).
1 parent b1f668d commit 92bad43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ Deprecated or removed
439439
440440
* `cummin` and `cummax` have been deprecated in favor of `accumulate`.
441441
442+
* The idiosyncratic `Array` constructor syntax `Array(T, dims...)` has been deprecated
443+
in favor of the more consistent forms `Array{T,N}(dims...)` (where `N` is known, or
444+
particularly `Vector{T}(dims...)` for `N = 1` and `Matrix{T}(dims...)` for `N = 2`),
445+
and `Array{T}(dims...)` (where `N` is not known) ([#19989]).
446+
442447
* `sumabs` and `sumabs2` have been deprecated in favor of `sum(abs, x)` and `sum(abs2, x)`, respectively.
443448
`maxabs` and `minabs` have similarly been deprecated in favor of `maximum(abs, x)` and `minimum(abs, x)`.
444449
Likewise for the in-place counterparts of these functions ([#19598]).
@@ -578,6 +583,7 @@ Deprecated or removed
578583
[#19944]: https://github.com/JuliaLang/julia/issues/19944
579584
[#19949]: https://github.com/JuliaLang/julia/issues/19949
580585
[#19950]: https://github.com/JuliaLang/julia/issues/19950
586+
[#19989]: https://github.com/JuliaLang/julia/issues/19989
581587
[#20009]: https://github.com/JuliaLang/julia/issues/20009
582588
[#20047]: https://github.com/JuliaLang/julia/issues/20047
583589
[#20079]: https://github.com/JuliaLang/julia/issues/20079

0 commit comments

Comments
 (0)