Skip to content

Commit 1333c7c

Browse files
committed
News and compat annotation for #29259
(merge(::NamedTuple...) with more than 2 arguments).
1 parent e6e93ef commit 1333c7c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Standard library changes
6262
* `Symmetric` and `Hermitian` matrices now preserve the wrapper when scaled with a number ([#29469]).
6363
* New `edit(m::Module)` method which opens the main source file for module `m` ([#29636]).
6464
* `Base.@kwdef` can now be used for parametric structs, and for structs with supertypes ([#29316]).
65+
* `merge(::NamedTuple, ::NamedTuple...)` can now be used with more than 2 `NamedTuple`s ([#29259]).
6566

6667
Compiler/Runtime improvements
6768
-----------------------------

base/namedtuple.jl

+4
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ contains that field. Fields present in only the rightmost named tuple of a pair
223223
A fallback is implemented for when only a single named tuple is supplied,
224224
with signature `merge(a::NamedTuple)`.
225225
226+
!!! compat "Julia 1.1"
227+
Merging 3 or more `NamedTuple` requires at least Julia 1.1.
228+
229+
# Examples
226230
```jldoctest
227231
julia> merge((a=1, b=2, c=3), (b=4, d=5))
228232
(a = 1, b = 4, c = 3, d = 5)

0 commit comments

Comments
 (0)