summary refs log tree commit diff stats
path: root/web
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-12-21 22:13:50 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-12-21 22:13:50 +0100
commit4e481cc316229436b87aaf035d70f686d0aaee5f (patch)
tree67c85a8fef0c5b0ebb7384712ad0a0bbf020aad4 /web
parent2bb49136de3e3d798c4bf37d23f34ee868e7ebf7 (diff)
downloadNim-4e481cc316229436b87aaf035d70f686d0aaee5f.tar.gz
implements module grouping for the import statement
Diffstat (limited to 'web')
-rw-r--r--web/news/e029_version_0_16_0.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/web/news/e029_version_0_16_0.rst b/web/news/e029_version_0_16_0.rst
index 905504791..4f5571256 100644
--- a/web/news/e029_version_0_16_0.rst
+++ b/web/news/e029_version_0_16_0.rst
@@ -77,6 +77,17 @@ Language Additions
     v[0] = 6.0
     echo v[0]
 
+- The ``import`` statement now supports importing multiple modules from
+  the same directory:
+
+.. code-block:: nim
+  import compiler / [ast, parser, lexer]
+
+Is a shortcut for:
+
+.. code-block:: nim
+  import compiler / ast, compiler / parser, compiler / lexer
+
 
 Bugfixes
 --------