From d552789619f3f2c6f9043bc1707d6e9cb03e10ef Mon Sep 17 00:00:00 2001 From: Sacha Verweij Date: Mon, 15 May 2017 05:17:43 -0700 Subject: [PATCH] Add NEWS.md entry for deprecation of Array(T, dims...) (#19989). (#21857) (cherry picked from commit 609b2d6adc52ebb7b6cb2be9678b56bfdbd9168e) --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index 80ad3891544ed..e8dcbbd96cda7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -432,6 +432,11 @@ Deprecated or removed * `cummin` and `cummax` have been deprecated in favor of `accumulate`. + * The `Array` constructor syntax `Array(T, dims...)` has been deprecated + in favor of the forms `Array{T,N}(dims...)` (where `N` is known, or + particularly `Vector{T}(dims...)` for `N = 1` and `Matrix{T}(dims...)` for `N = 2`), + and `Array{T}(dims...)` (where `N` is not known) ([#19989]). + * `sumabs` and `sumabs2` have been deprecated in favor of `sum(abs, x)` and `sum(abs2, x)`, respectively. `maxabs` and `minabs` have similarly been deprecated in favor of `maximum(abs, x)` and `minimum(abs, x)`. Likewise for the in-place counterparts of these functions ([#19598]). @@ -605,6 +610,7 @@ Command-line option changes [#19944]: https://github.com/JuliaLang/julia/issues/19944 [#19949]: https://github.com/JuliaLang/julia/issues/19949 [#19950]: https://github.com/JuliaLang/julia/issues/19950 +[#19989]: https://github.com/JuliaLang/julia/issues/19989 [#20009]: https://github.com/JuliaLang/julia/issues/20009 [#20047]: https://github.com/JuliaLang/julia/issues/20047 [#20079]: https://github.com/JuliaLang/julia/issues/20079