Module(:name, false, false)
can be used to create amodule
that does not importCore
. ([#40110])@inline
and@noinline
annotations can be used within a function body to give an extra hint about the inlining cost to the compiler. ([#41312])@inline
and@noinline
annotations can now be applied to a function callsite or block to enforce the involved function calls to be (or not to be) inlined. ([#41312])- The default behavior of observing
@inbounds
declarations is now an option viaauto
in--check-bounds=yes|no|auto
([#41551])
hardlink(src, dst)
can be used to create hard links. ([#41639])
@test_throws "some message" triggers_error()
can now be used to check whether the displayed error text contains "some message" regardless of the specific exception type. Regular expressions, lists of strings, and matching functions are also supported. ([#41888])
range
accepts eitherstop
orlength
as a sole keyword argument ([#39241])- The
length
function on certain ranges of certain specific element types no longer checks for integer overflow in most cases. The new functionchecked_length
is now available, which will try to use checked arithmetic to error if the result may be wrapping. Or use a package such as SaferIntegers.jl when constructing the range. ([#40382]) - TCP socket objects now expose
closewrite
functionality and support half-open mode usage ([#40783]). - Intersect returns a result with the eltype of the type-promoted eltypes of the two inputs ([#41769]).
- A new macro
@time_imports
for reporting any time spent importing packages and their dependencies ([#41612])
- Now uses
textwidth
for formatting%s
and%c
widths ([#41085]).
?(x, y
followed by TAB displays all methods that can be called with argumentsx, y, ...
. (The space at the beginning prevents entering help-mode.)MyModule.?(x, y
limits the search toMyModule
. TAB requires that at least one argument have a type more specific thanAny
; use SHIFT-TAB instead of TAB to allow any compatible methods.
- The standard log levels
BelowMinLevel
,Debug
,Info
,Warn
,Error
, andAboveMaxLevel
are now exported from the Logging stdlib ([#40980]).