From 3405a3d70ba3edcf81b39d3326fb8c3874f0ad21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Haraldsson?= Date: Sun, 1 Nov 2020 00:12:25 +0000 Subject: [PATCH 1/2] Fix PR number Assume @simeonschaub wanted that number. [skip ci] --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 8d1f82c0a6048..57a7e0abb7372 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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`, From 39fa7dc3e612230e2aac3454578363c536601ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1ll=20Haraldsson?= Date: Sun, 1 Nov 2020 00:25:46 +0000 Subject: [PATCH 2/2] Fix intended PR number... and punctuation [skip ci] --- NEWS.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/NEWS.md b/NEWS.md index 57a7e0abb7372..5e9cfc222dd1f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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]). @@ -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 @@ -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. @@ -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. @@ -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_*`