summary refs log tree commit diff stats
path: root/lib/pure/sugar.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes a bug for 'dup' and 'with'; they can now handle nested statement lists ↵Araq2020-03-171-8/+1
| | | | that can result from macros
* added operateOn to sugar.nim to give Nim the chaining mechanism it de… ↵Andreas Rumpf2020-02-261-28/+38
| | | | | | | | (#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
* capture macro now accepts variables of different types (#13356)Clyybber2020-02-151-3/+5
| | | | | | | | | | * Capture macro can now accept variables of different types * Add test * Update examples * Use let instead of var
* Fix capture for object types (#13315)Clyybber2020-02-021-1/+1
| | | | | | * Fix capture for object|tuple|... types * Add test case
* Tiny since cleanup (#13286)Clyybber2020-01-281-116/+116
|
* distinctBase type trait for distinct types (#13031)cooldome2020-01-081-20/+3
|
* fixes #12874 (#12890)Andreas Rumpf2019-12-131-8/+42
| | | | | | * fixes #12874 * fixes introduced regressions
* introduce capture macro (#12712)Judd2019-12-101-0/+26
| | | | capture works for more cases than `closureScope`.
* [backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. ↵3n-k12019-11-281-1/+1
| | | | (#12754)
* delete list comprehension (#12392)Arne Döring2019-11-221-58/+0
| | | The `lc` macro is now part of `graveyard` repository.
* add collect macro (#12708)b3liever2019-11-221-0/+97
| | | | | | * add collect macro * Add to changelog
* Implemented outplace differently (#12599)Clyybber2019-11-091-0/+45
| | | | | * implemented sugar.outplace; refs #12550 * Different approach, allows for chaining
* Refactor json macro (#12391)Arne Döring2019-10-171-1/+0
| | | | | | | | * closes #12316 * make tjsonmacro work at js target * closes #12289 * closes #11988 * also fixed gdb related stuff
* deprecated list comprehension (#10636)Arne Döring2019-02-131-3/+4
|
* fixes #9540Araq2018-10-291-2/+3
|
* fixes #8519; implements T.distinctBase to reverse T = distinct A (#8531)Timothee Cour2018-08-101-0/+38
|
* make tests green againAndreas Rumpf2018-04-131-2/+2
|
* renamed future.nim to sugar.nimAraq2018-04-061-0/+200