minor breaking change: for loop bodies now get their own scope

This commit is contained in:
Andreas Rumpf 2017-11-05 16:53:05 +01:00
commit 4e4d466d06
4 changed files with 14 additions and 0 deletions

View file

@ -41,6 +41,14 @@
what to return if the environment variable does not exist.
- Removed PDCurses wrapper from the stdlib and published it as a separate
Nimble package.
- Bodies of ``for`` loops now get their own scope:
.. code-block:: nim
# now compiles:
for i in 0..4:
let i = i + 1
echo i
- The parsing rules of ``if`` expressions were changed so that multiple
statements are allowed in the branches. We found few code examples that
now fail because of this change, but here is one: