summary refs log tree commit diff stats
path: root/changelog.md
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-13 17:06:46 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-13 17:45:58 +0200
commit47335aab4148b2cd5b28cd3012d6d6e0a0c82db7 (patch)
tree33c87e807f22b59d61dbe2aa0f42430c0d0399d3 /changelog.md
parentab426faa226f7041c60e671ad2a3ba79b46ee1c0 (diff)
downloadNim-47335aab4148b2cd5b28cd3012d6d6e0a0c82db7.tar.gz
introduce nkTupleConstr AST node for unary tuple construction; breaking change
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index ce2fc08f3..364047d05 100644
--- a/changelog.md
+++ b/changelog.md
@@ -5,6 +5,10 @@
 - The stdlib module ``future`` has been renamed to ``sugar``.
 - ``macros.callsite`` is now deprecated. Since the introduction of ``varargs``
   parameters this became unnecessary.
+- Anonymous tuples with a single element can now be written as ``(1,)`` with a
+  trailing comma. The underlying AST is ``nnkTupleConst(newLit 1)`` for this
+  example. ``nnkTupleConstr`` is a new node kind your macros need to be able
+  to deal with!
 
 #### Breaking changes in the standard library