changelog.md: Group the new to procs (#15522)
* changelog.md: Group the new `to` procs [ci skip] This also moves the `critbits.toCritBitTree` entry from the "Language Changes" section to the "Standard library additions and changes" section. * changelog.md: Remove extra space
This commit is contained in:
parent
1e9d83efb0
commit
aa0b73575c
1 changed files with 8 additions and 12 deletions
20
changelog.md
20
changelog.md
|
|
@ -159,10 +159,6 @@
|
||||||
- Removed `sugar.distinctBase`, deprecated since `0.19`.
|
- Removed `sugar.distinctBase`, deprecated since `0.19`.
|
||||||
- Export `asyncdispatch.PDispatcher.handles` so that an external library can register them.
|
- Export `asyncdispatch.PDispatcher.handles` so that an external library can register them.
|
||||||
|
|
||||||
- Added `deques.toDeque`, which creates a deque from an openArray. The usage is
|
|
||||||
similar to procs such as `sets.toHashSet` and `tables.toTable`. Previously,
|
|
||||||
it was necessary to create an empty deque and add items manually.
|
|
||||||
|
|
||||||
- `std/with`, `sugar.dup` now support object field assignment expression:
|
- `std/with`, `sugar.dup` now support object field assignment expression:
|
||||||
```nim
|
```nim
|
||||||
import std/with
|
import std/with
|
||||||
|
|
@ -201,13 +197,14 @@
|
||||||
|
|
||||||
- Added `readLines(p: Process)` to `osproc` module for `startProcess` convenience.
|
- Added `readLines(p: Process)` to `osproc` module for `startProcess` convenience.
|
||||||
|
|
||||||
- Added `heapqueue.toHeapQueue`, which creates a HeapQueue from an openArray.
|
- Added the below `to` procs for collections. The usage is similar to procs such as
|
||||||
The usage is similar to procs such as `sets.toHashSet` and `tables.toTable`.
|
`sets.toHashSet` and `tables.toTable`. Previously, it was necessary to create the
|
||||||
Previously, it was necessary to create an empty HeapQueue and add items
|
respective empty collection and add items manually.
|
||||||
manually.
|
* `critbits.toCritBitTree`, which creates a `CritBitTree` from an `openArray` of
|
||||||
- Added `intsets.toIntSet`, which creates an IntSet from an openArray. The usage
|
items or an `openArray` of pairs.
|
||||||
is similar to procs such as `sets.toHashSet` and `tables.toTable`. Previously,
|
* `deques.toDeque`, which creates a `Deque` from an `openArray`.
|
||||||
it was necessary to create an empty IntSet and add items manually.
|
* `heapqueue.toHeapQueue`, which creates a `HeapQueue` from an `openArray`.
|
||||||
|
* `intsets.toIntSet`, which creates an `IntSet` from an `openArray`.
|
||||||
|
|
||||||
- Added `progressInterval` argument to `asyncftpclient.newAsyncFtpClient` to control the interval
|
- Added `progressInterval` argument to `asyncftpclient.newAsyncFtpClient` to control the interval
|
||||||
at which progress callbacks are called.
|
at which progress callbacks are called.
|
||||||
|
|
@ -305,7 +302,6 @@ proc mydiv(a, b): int {.raises: [].} =
|
||||||
- Added a `std/effecttraits` module for introspection of the inferred effects.
|
- Added a `std/effecttraits` module for introspection of the inferred effects.
|
||||||
We hope this enables `async` macros that are precise about the possible exceptions that
|
We hope this enables `async` macros that are precise about the possible exceptions that
|
||||||
can be raised.
|
can be raised.
|
||||||
- Added `critbits.toCritBitTree`, similar to `tables.toTable`, creates a new `CritBitTree` with given arguments.
|
|
||||||
- The pragma blocks `{.gcsafe.}: ...` and `{.noSideEffect.}: ...` can now also be
|
- The pragma blocks `{.gcsafe.}: ...` and `{.noSideEffect.}: ...` can now also be
|
||||||
written as `{.cast(gcsafe).}: ...` and `{.cast(noSideEffect).}: ...`. This is the new
|
written as `{.cast(gcsafe).}: ...` and `{.cast(noSideEffect).}: ...`. This is the new
|
||||||
preferred way of writing these, emphasizing their unsafe nature.
|
preferred way of writing these, emphasizing their unsafe nature.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue