(; a, b) = x
can now be used to destructure propertiesa
andb
ofx
. This syntax is equivalent toa = getproperty(x, :a)
and similarly forb
. ([#39285])- Implicit multiplication by juxtaposition is now allowed for radical symbols (e.g.,
x√y
andx∛y
). ([#40173]) - The short-circuiting operators
&&
and||
can now be dotted to participate in broadcast fusion as.&&
and.||
. ([#39594]) ⫪
(U+2AEA,\Top
,\downvDash
) and⫫
(U+2AEB,\Bot
,\upvDash
,\indep
) may now be used as binary operators with comparison precedence. ([#39403])
macroexpand
,@macroexpand
, and@macroexpand1
no longer wrap errors in aLoadError
. To reduce breakage,@test_throws
has been modified so that many affected tests will still pass ([#38379]].- The middle dot
·
(\cdotp
U+00b7) and the Greek interpunct·
(U+0387) are now treated as equivalent to the dot operator⋅
(\cdot
U+22c5) (#25157).
- The Julia
--project
option and theJULIA_PROJECT
environment variable now support selecting shared environments like.julia/environments/myenv
the same way the package management console does: usejulia --project=@myenv
resp.export JULIA_PROJECT="@myenv"
([#40025]).
- If the
JULIA_NUM_THREADS
environment variable is set toauto
, then the number of threads will be set to the number of CPU threads ([#38952])
- Two argument methods
findmax(f, domain)
,argmax(f, domain)
and the correspondingmin
versions ([#27613]). isunordered(x)
returns true ifx
is value that is normally unordered, such asNaN
ormissing
.- New macro
Base.@invokelatest f(args...; kwargs...)
provides a convenient way to callBase.invokelatest(f, args...; kwargs...)
([#37971]) - Two arguments method
lock(f, lck)
now accepts aChannel
as the second argument. ([#39312]) - New functor
Returns(value)
, which returnsvalue
for any arguments ([#39794]) - New macro
Base.@invoke f(arg1::T1, arg2::T2; kwargs...)
provides an easier syntax to callinvoke(f, Tuple{T1,T2}, arg1, arg2; kwargs...)
([#38438])
- The optional keyword argument
context
ofsprint
can now be set to a tuple of:key => value
pairs to specify multiple attributes. ([#39381]) bytes2hex
andhex2bytes
are no longer limited to arguments of typeUnion{String,AbstractVector{UInt8}}
and now only require that they're iterable and have a length. ([#39710])
count
andfindall
now accept anAbstractChar
argument to search for a character in a string ([#38675]).range
now supports therange(start, stop)
andrange(start, stop, length)
methods ([#39228]).range
now supportsstart
as an optional keyword argument ([#38041]).islowercase
andisuppercase
are now compliant with the Unicode lower/uppercase categories ([#38574]).iseven
andisodd
functions now support non-Integer
numeric types ([#38976]).escape_string
can now receive a collection of characters in the keywordkeep
that are to be kept as they are. ([#38597]).getindex
can now be used onNamedTuple
s with multiple values ([#38878])- Subtypes of
AbstractRange
now correctly follow the general array indexing behavior when indexed byBool
s, erroring for scalarBool
s and treating arrays (including ranges) ofBool
as an logical index ([#31829]) keys(::RegexMatch)
is now defined to return the capture's keys, by name if named, or by index if not ([#37299]).keys(::Generator)
is now defined to return the iterator's keys ([#34678])RegexMatch
now iterate to give their captures. ([#34355]).Test.@test
now acceptsbroken
andskip
boolean keyword arguments, which mimicTest.@test_broken
andTest.@test_skip
behavior, but allows skipping tests failing only under certain conditions. For examplecan be replaced byif T == Float64 @test_broken isequal(complex(one(T)) / complex(T(Inf), T(-Inf)), complex(zero(T), zero(T))) else @test isequal(complex(one(T)) / complex(T(Inf), T(-Inf)), complex(zero(T), zero(T))) end
([#39322])@test isequal(complex(one(T)) / complex(T(Inf), T(-Inf)), complex(zero(T), zero(T))) broken=(T == Float64)
@lock
is now exported from Base ([#39588]).
- Use Libblastrampoline to pick a BLAS and LAPACK at runtime. By default it forwards to OpenBLAS in the Julia distribution. The forwarding mechanism can be used by packages to replace the BLAS and LAPACK with user preferences. ([#39455])
- On aarch64, OpenBLAS now uses an ILP64 BLAS like all other 64-bit platforms. ([#39436])
- OpenBLAS is updated to 0.3.13. ([#39216])
- SuiteSparse is updated to 5.8.1. ([#39455])
- The shape of an
UpperHessenberg
matrix is preserved under certain arithmetic operations, e.g. when multiplying or dividing by anUpperTriangular
matrix. ([#40039]) cis(A)
now supports matrix arguments ([#40194]).dot
now supportsUniformScaling
withAbstractMatrix
([#40250]).
- new
sizehint!(::SparseMatrixCSC, ::Integer)
method ([#30676]). cholesky()
now fully preserves the user-specified permutation. ([#40560])
- The
Dates.periods
function can be used to get theVector
ofPeriod
s that comprise aCompoundPeriod
([#39169]).
mmap
is now exported ([#39816]).
readdlm
now defaults touse_mmap=false
on all OSes for consistent reliability in abnormal filesystem situations ([#40415]).
- Multiple successive semicolons in an array expresion were previously ignored (e.g.
[1 ;; 2] == [1 ; 2]
). Multiple semicolons are being reserved for future syntax and may have different behavior in a future release.