nep1: prefer a..b to a .. b except if b has an operator (eg: a .. -1) (#16992)
* nep1: prefer `a..b` to `a .. b` except if b has an operator * address comments * address comment
This commit is contained in:
parent
a1203cf848
commit
897cb4b077
1 changed files with 3 additions and 0 deletions
|
|
@ -280,3 +280,6 @@ Conventions for multi-line statements and expressions
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
startProcess(nimExecutable, currentDirectory, compilerArguments
|
startProcess(nimExecutable, currentDirectory, compilerArguments
|
||||||
environment, processOptions)
|
environment, processOptions)
|
||||||
|
|
||||||
|
- Use `a..b` instead of `a .. b`, except when `b` contains an operator, for example `a .. -3`.
|
||||||
|
Likewise with `a..<b`, `a..^b` and other operators starting with `..`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue