update changelog for #20242, #20091, #20087 (#20288)

This commit is contained in:
metagn 2022-08-31 21:46:17 +03:00 • committed by GitHub
commit 538b8d4032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@
- `addr` is now available for all addressable locations, - `addr` is now available for all addressable locations,
`unsafeAddr` is now deprecated and an alias for `addr`. `unsafeAddr` is now deprecated and an alias for `addr`.
- `io`, `assertions`, `formatfloat` are about to move out of the `system` module. You may instead import `std/syncio`, `std/assertions` and `std/formatfloat`. - `io`, `assertions`, `formatfloat`, and `` dollars.`$` `` for objects are about to move out of the `system` module. You may instead import `std/syncio`, `std/assertions`, `std/formatfloat` and `std/objectdollar`.
The `-d:nimPreviewSlimSystem` option makes these imports required. The `-d:nimPreviewSlimSystem` option makes these imports required.
- The `gc:v2` option is removed. - The `gc:v2` option is removed.
@ -59,6 +59,7 @@
and [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask) and [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask)
in `jscore` for JavaScript targets. in `jscore` for JavaScript targets.
- Added `UppercaseLetters`, `LowercaseLetters`, `PunctuationChars`, `PrintableChars` sets to `std/strutils`. - Added `UppercaseLetters`, `LowercaseLetters`, `PunctuationChars`, `PrintableChars` sets to `std/strutils`.
- Added `complex.sgn` for obtaining the phase of complex numbers.
[//]: # "Deprecations:" [//]: # "Deprecations:"
- Deprecated `selfExe` for Nimscript. - Deprecated `selfExe` for Nimscript.
@ -128,6 +129,13 @@
where it is implicit. This behavior only applies to templates, redefinition where it is implicit. This behavior only applies to templates, redefinition
is generally disallowed for other symbols. is generally disallowed for other symbols.
- A new form of type inference called [top-down inference](https://nim-lang.github.io/Nim/manual_experimental.html#topminusdown-type-inference)
has been implemented for a variety of basic cases. For example, code like the following now compiles:
```nim
let foo: seq[(float, byte, cstring)] = @[(1, 2, "abc")]
```
## Compiler changes ## Compiler changes
- The `gc` switch has been renamed to `mm` ("memory management") in order to reflect the - The `gc` switch has been renamed to `mm` ("memory management") in order to reflect the