From 3379646c1613c5a29864e5afd350bbf54cdd215c Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 5 Apr 2016 21:26:26 +0100 Subject: Add -d:nimJsonGet flag for json.[] and news entry. --- web/news.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web') 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 -- cgit 1.4.1-2-gfad0