diff options
author | metagn <metagngn@gmail.com> | 2022-12-06 15:11:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 13:11:56 +0100 |
commit | 4ca2dcb404aa1b92900e838790d5df554fc0cb9a (patch) | |
tree | 13ba43b84b90c24f23b528fe110e15338e35fae6 /changelog.md | |
parent | 1564ae650f8d4d4c30adf4528f74d7707e4cb737 (diff) | |
download | Nim-4ca2dcb404aa1b92900e838790d5df554fc0cb9a.tar.gz |
Named arguments in commands + many grammar fixes (#20994)
* Breaking parser changes, implement https://github.com/nim-lang/RFCs/issues/442 Types are separated from expressions and better reflected in the grammar. * add test * more accurate grammar * fix keyword typedescs * accept expressions in proc argument lists * CI "fixes" * fixes * allow full ref expressions again, adapt old tests * cleanup, fix some tests * improve grammar, try and revert semtypes change * restrict sigil binding to identOrLiteral * fix, should have caught this immediately * add changelog entry, fix double not nil bug * correct grammar * change section * fix * real fix hopefully * fix test * support LL(1) for tuples * make grammar.txt too
Diffstat (limited to 'changelog.md')
-rw-r--r-- | changelog.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index ce6257379..046e65cb8 100644 --- a/changelog.md +++ b/changelog.md @@ -80,6 +80,11 @@ - Removed two type pragma syntaxes deprecated since 0.20, namely `type Foo = object {.final.}`, and `type Foo {.final.} [T] = object`. +- `foo a = b` now means `foo(a = b)` rather than `foo(a) = b`. This is consistent + with the existing behavior of `foo a, b = c` meaning `foo(a, b = c)`. + This decision was made with the assumption that the old syntax was used rarely; + if your code used the old syntax, please be aware of this change. + - [Overloadable enums](https://nim-lang.github.io/Nim/manual.html#overloadable-enum-value-names) and Unicode Operators are no longer experimental. |