diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2016-04-05 21:26:26 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2016-04-05 21:28:53 +0100 |
commit | 3379646c1613c5a29864e5afd350bbf54cdd215c (patch) | |
tree | 83ff6871359584562cac31de6aaa0162229d14a0 /web | |
parent | 2d80a9e4a6e38e53a7923c9afeeec0f3a9a7aa1d (diff) | |
download | Nim-3379646c1613c5a29864e5afd350bbf54cdd215c.tar.gz |
Add -d:nimJsonGet flag for json.[] and news entry.
Diffstat (limited to 'web')
-rw-r--r-- | web/news.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/news.txt b/web/news.txt index 42d2aca99..0a83503c1 100644 --- a/web/news.txt +++ b/web/news.txt @@ -28,6 +28,10 @@ Changes affecting backwards compatibility for more details. - The ``matchers`` module has been deprecated. See issue [#2446](https://github.com/nim-lang/Nim/issues/2446) for more details. +- The ``json.[]`` no longer returns ``nil`` when a key is not found. Instead it + raises a ``KeyError`` exception. You can compile with the ``-d:nimJsonGet`` + flag to get a list of usages of ``[]``, as well as to restore the operator's + previous behaviour. Library Additions |