Skip to content

Commit c7e4da6

Browse files
Sacha0tkelman
authored andcommitted
Add NEWS.md entry for dep of unintended zeros/ones methods (#21183). (#21844)
(cherry picked from commit f6bd5fe)
1 parent 6ffccfa commit c7e4da6

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
@@ -437,6 +437,11 @@ Deprecated or removed
437437
* The two-argument forms of `map` (`map!(f, A)`) and `asyncmap!` (`asyncmap!(f, A)`)
438438
have been deprecated in anticipation of future semantic changes ([#19721]).
439439
440+
* `zeros` and `ones` methods accepting an element type as the first argument and an
441+
array as the second argument, for example `zeros(Float64, [1, 2, 3])`, have been
442+
deprecated in favor of equivalent methods with the second argument instead the
443+
size of the array, for example `zeros(Float64, size([1, 2, 3]))` ([#21183]).
444+
440445
* `isimag` has been deprecated ([#19949]).
441446
442447
* The tuple-of-types form of `invoke`, `invoke(f, (types...), ...)`, has been deprecated
@@ -593,3 +598,4 @@ Command-line option changes
593598
[#20543]: https://github.com/JuliaLang/julia/issues/20543
594599
[#20609]: https://github.com/JuliaLang/julia/issues/20609
595600
[#20889]: https://github.com/JuliaLang/julia/issues/20889
601+
[#21183]: https://github.com/JuliaLang/julia/issues/21183

0 commit comments

Comments
 (0)