Skip to content

Fix PR number #38252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ New language features
are now interpreted as `BigInt` ([#23546]).
* The postfix conjugate transpose operator `'` now accepts Unicode modifiers as
suffixes, so e.g. `a'ᵀ` is parsed as `var"'ᵀ"(a)`, which can be defined by the
user. `a'ᵀ` parsed as `a' * ᵀ` before, so this is a minor change ([#37247]).
user. `a'ᵀ` parsed as `a' * ᵀ` before, so this is a minor change ([#38062]).
* It is now possible to use varargs on the left-hand side of assignments for taking any
number of items from the front of an iterable collection, while also collecting the rest,
like `a, b... = [1, 2, 3]`, for example. This syntax is implemented using `Base.rest`,
Expand Down Expand Up @@ -114,7 +114,7 @@ New library features
inserting or consuming the first dimension depending on the ratio of `sizeof(T)` and `sizeof(S)`.
* New `append!(vector, collections...)` and `prepend!(vector, collections...)` methods accept multiple
collections to be appended or prepended ([#36227]).
* The postfix operator `'ᵀ` can now be used as an alias for `transpose` ([#38043]).
* The postfix operator `'ᵀ` can now be used as an alias for `transpose` ([#38062]).
* `keys(io::IO)` has been added, which returns all keys of `io` if `io` is an `IOContext` and an empty
`Base.KeySet` otherwise ([#37753]).
* `count` now accepts an optional `init` argument to control the accumulation type ([#37461]).
Expand Down Expand Up @@ -165,10 +165,10 @@ Standard library changes

#### Printf

* Complete overhaul of internal code to use the ryu float printing algorithms (from Julia 1.4); leads to consistent 2-5x performance improvements
* New `Printf.tofloat` function allowing custom float types to more easily integrate with Printf formatting by converting their type to `Float16`, `Float32`, `Float64`, or `BigFloat`
* New `Printf.format"..."` and `Printf.Format(...)` functions that allow creating `Printf.Format` objects that can be passed to `Printf.format` for easier dynamic printf formatting
* `Printf.format(f::Printf.Format, args...)` as a non-macro function that applies a printf format `f` to provided `args`
* Complete overhaul of internal code to use the ryu float printing algorithms (from Julia 1.4); leads to consistent 2-5x performance improvements.
* New `Printf.tofloat` function allowing custom float types to more easily integrate with Printf formatting by converting their type to `Float16`, `Float32`, `Float64`, or `BigFloat`.
* New `Printf.format"..."` and `Printf.Format(...)` functions that allow creating `Printf.Format` objects that can be passed to `Printf.format` for easier dynamic printf formatting.
* `Printf.format(f::Printf.Format, args...)` as a non-macro function that applies a printf format `f` to provided `args`.


#### Random
Expand All @@ -184,8 +184,8 @@ Standard library changes

The new API offers several enhancements:

+ Menus are configured in their constructors via keyword arguments
+ For custom menu types, the new `Config` and `MultiSelectConfig` replace the global `CONFIG` Dict
+ Menus are configured in their constructors via keyword arguments.
+ For custom menu types, the new `Config` and `MultiSelectConfig` replace the global `CONFIG` `Dict`
+ `request(menu; cursor=1)` allows you to control the initial cursor position in the menu (defaults to first item)
+ `MultiSelectMenu` allows you to pass a list of initially-selected items with the `selected` keyword argument
+ `writeLine` was deprecated to `writeline`, and `writeline` methods are not expected to print the cursor indicator.
Expand All @@ -195,7 +195,7 @@ Standard library changes
makes `printmenu` work properly when the number of menu items might change depending on user choices.
+ `numoptions`, returning the number of items in the menu, has been added as an alternative to implementing `options`
+ `suppress_output` (primarily a testing option) has been added as a keyword argument to `request`,
rather than a configuration option
rather than a configuration option.

* Windows REPL now supports 24-bit colors, by correctly interpreting virtual terminal escapes.

Expand Down Expand Up @@ -226,7 +226,7 @@ Standard library changes
#### UUIDs

* Change `uuid1` and `uuid4` to use `Random.RandomDevice()` as default random number generator ([#35872]).
* Added `parse(::Type{UUID}, ::AbstractString)` method
* Added `parse(::Type{UUID}, ::AbstractString)` method.

#### Mmap
* On Unix systems, the `Mmap.madvise!` function (along with OS-specific `Mmap.MADV_*`
Expand Down