diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-02-26 20:36:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 20:36:06 +0100 |
commit | d55bbefdcc9c045b3a759f566a35dfc6b9bb1354 (patch) | |
tree | 9798f766e4eeb43646667719bf237a9c1ced7334 /changelog.md | |
parent | f091b5a0ee9b5585a08e9130d3ec682a9526ef39 (diff) | |
download | Nim-d55bbefdcc9c045b3a759f566a35dfc6b9bb1354.tar.gz |
added operateOn to sugar.nim to give Nim the chaining mechanism it de… (#13092)
* implemented the with stdlib module as specified in https://github.com/nim-lang/RFCs/issues/193 * change sugar.outplace to sugar.dup according to https://github.com/nim-lang/RFCs/issues/193 * changelog update
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 7be7a722b..f106ac2c2 100644 --- a/changelog.md +++ b/changelog.md @@ -52,7 +52,7 @@ `CountTable.pop`, `Table.pop` - To `strtabs.nim`, added `StringTable.clear` overload that reuses the existing mode. - Added `browsers.osOpen` const alias for the operating system specific *"open"* command. -- Added `sugar.outplace` for turning in-place algorithms like `sort` and `shuffle` into +- Added `sugar.dup` for turning in-place algorithms like `sort` and `shuffle` into operations that work on a copy of the data and return the mutated copy. As the existing `sorted` does. - Added `sugar.collect` that does comprehension for seq/set/table collections. @@ -71,6 +71,18 @@ - Added `resetOutputFormatters` to `unittest` +- Added a `with` macro for easy function chaining that's available + everywhere, there is no need to concern your APIs with returning the first argument + to enable "chaining", instead use the dedicated macro `with` that + was designed for it. For example: + +```nim + + + +``` + + ## Library changes - `asynchttpserver` added an iterator that allows the request body to be read in |