diff options
author | Araq <rumpf_a@web.de> | 2015-03-27 02:14:27 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-03-27 02:14:27 +0100 |
commit | e80840c40af5c9108e9aed1573cf4f048a2757b8 (patch) | |
tree | 346fe321dccd550ddf3edf908c5bc9c8a99b8c0b /web | |
parent | 7720c0aafd61a446a6d36cc96c485c44d899dfd3 (diff) | |
download | Nim-e80840c40af5c9108e9aed1573cf4f048a2757b8.tar.gz |
preparations for dealing with the 'echo $foo' gotcha
Diffstat (limited to 'web')
-rw-r--r-- | web/news.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/news.txt b/web/news.txt index f1ce656a8..3d60540ec 100644 --- a/web/news.txt +++ b/web/news.txt @@ -42,7 +42,7 @@ News structure; for immediate macro parameters ``nkCall('addr', 'x')`` is produced instead of ``nkAddr('x')``. - ``concept`` is now a keyword and is used instead of ``generic``. - - The ``inc``, ``dec``, ``+=``, ``-=`` builtins now produces OverflowError + - The ``inc``, ``dec``, ``+=``, ``-=`` builtins now produce OverflowError exceptions. This means code like the following: .. code-block:: nim @@ -64,6 +64,10 @@ News use ``a[0.. ^1]``. This also works with accessing a single element ``a[^1]``. Note that we cannot detect this reliably as it is determined at **runtime** whether negative indexing is used! + - The compiler now warns about code like ``foo +=1`` which uses inconsistent + spacing around binary operators. Later versions of the language will parse + these as unary operators instead so that ``echo $foo`` finally can do what + people expect it to do. Language Additions |