From 538b8d40321258febd15d25db6f1dcb0988fa936 Mon Sep 17 00:00:00 2001 From: metagn Date: Wed, 31 Aug 2022 21:46:17 +0300 Subject: [PATCH] update changelog for #20242, #20091, #20087 (#20288) --- changelog.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 36f27ecf30..61e67161e6 100644 --- a/changelog.md +++ b/changelog.md @@ -6,7 +6,7 @@ - `addr` is now available for all addressable locations, `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 `gc:v2` option is removed. @@ -59,6 +59,7 @@ and [`queueMicrotask`](https://developer.mozilla.org/en-US/docs/Web/API/queueMicrotask) in `jscore` for JavaScript targets. - Added `UppercaseLetters`, `LowercaseLetters`, `PunctuationChars`, `PrintableChars` sets to `std/strutils`. +- Added `complex.sgn` for obtaining the phase of complex numbers. [//]: # "Deprecations:" - Deprecated `selfExe` for Nimscript. @@ -127,6 +128,13 @@ added to make this work explicitly, and a warning is generated in the case where it is implicit. This behavior only applies to templates, redefinition 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