Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEWS updates for Dict comprehensions and
map
of Dict.
ref #17714 [ci skip]
- Loading branch information
1 parent
32fecde
commit fc3cbc9
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,9 @@ Language changes | |
When `x` is global, `x::T = ...` and `global x::T` used to mean type assertion, | ||
but this syntax is now reserved for type declaration ([#964]). | ||
|
||
* Dictionary comprehension syntax `[ a=>b for x in y ]` is deprecated. | ||
Use `Dict(a=>b for x in y)` instead ([#16510]). | ||
|
||
Library improvements | ||
-------------------- | ||
|
||
|
@@ -339,6 +342,9 @@ This section lists changes that do not have deprecation warnings. | |
`:comparison` expression type ([#15524]). The `:comparison` expression type is still | ||
produced in ASTs when comparisons are chained (e.g. `A < B ≤ C`). | ||
|
||
* `map` on a dictionary now expects a function that expects and returns a `Pair`. | ||
The result is now another dictionary instead of an array ([#16622]). | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
zuo
|
||
|
||
Deprecated or removed | ||
--------------------- | ||
|
||
|
@@ -469,6 +475,7 @@ Language tooling improvements | |
[#16466]: https://github.com/JuliaLang/julia/issues/16466 | ||
[#16481]: https://github.com/JuliaLang/julia/issues/16481 | ||
[#16502]: https://github.com/JuliaLang/julia/issues/16502 | ||
[#16510]: https://github.com/JuliaLang/julia/issues/16510 | ||
[#16621]: https://github.com/JuliaLang/julia/issues/16621 | ||
[#16622]: https://github.com/JuliaLang/julia/issues/16622 | ||
[#16645]: https://github.com/JuliaLang/julia/issues/16645 | ||
|
The issue #16622 seems to be unrelated to
map
+ dictionaries. Shouldn't another issue be referenced here?