-
When methods are replaced with exactly equivalent ones, the old method is no longer deleted implicitly simultaneously, although the new method does take priority and become more specific than the old method. Thus if the new method is deleted later, the old method will resume operating. This can be useful to mocking frameworks (such as in SparseArrays, Pluto, and Mocking, among others), as they do not need to explicitly restore the old method. While inference and compilation still must be repeated with this, it also may pave the way for inference to be able to intelligently re-use the old results, once the new method is deleted. ([#53415])
-
Macro expansion will no longer eargerly recurse into into
Expr(:toplevel)expressions returned from macros. Instead, macro expansion of:toplevelexpressions will be delayed until evaluation time. This allows a later expression within a given:toplevelexpression to make use of macros defined earlier in the same:toplevelexpression. ([#53515])
- Generated LLVM IR now uses actual pointer types instead of passing pointers as integers.
This affects
llvmcall: Inline LLVM IR should be updated to usei8*orptrinstead ofi32ori64, and remove unneededptrtoint/inttoptrconversions. For compatibility, IR with integer pointers is still supported, but generates a deprecation warning. ([#53687])
- The
-m/--moduleflag can be passed to run themainfunction inside a package with a set of arguments. Thismainfunction should be declared using@mainto indicate that it is an entry point.
logrange(start, stop; length)makes a range of constant ratio, instead of constant step ([#39071])- The new
isfull(c::Channel)function can be used to check ifput!(c, some_value)will block. ([#53159]) waitany(tasks; throw=false)andwaitall(tasks; failfast=false, throw=false)which wait multiple tasks at once ([#53341]).
invmod(n, T)whereTis a native integer type now computes the modular inverse ofnin the modular integer ring thatTdefines ([#52180]).invmod(n)is an abbreviation forinvmod(n, typeof(n))for native integer types ([#52180]).replace(string, pattern...)now supports an optionalIOargument to write the output to a stream rather than returning a string ([#48625]).sizehint!(s, n)now supports an optionalshrinkargument to disable shrinking ([#51929]).- New function
Docs.hasdoc(module, symbol)tells whether a name has a docstring ([#52139]). - New function
Docs.undocumented_names(module)returns a module's undocumented public names ([#52413]). - Passing an
IOBufferas a stdout argument forProcessspawn now works as expected, synchronized withwaitorsuccess, so aBase.BufferStreamis no longer required there for correctness to avoid data races ([#52461]). - After a process exits,
closewritewill no longer be automatically called on the stream passed to it. Callwaiton the process instead to ensure the content is fully written, then callclosewritemanually to avoid data-races. Or use the callback form ofopento have all that handled automatically. @timednow additionally returns the elapsed compilation and recompilation time ([#52889])filtercan now act on aNamedTuple([#50795]).tempnamecan now take a suffix string to allow the file name to include a suffix and include that suffix in the uniquing checking ([#53474])RegexMatchobjects can now be used to constructNamedTuples andDicts ([#50988])