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:
Timothee Cour
2021-02-10 03:13:28 -08:00
committed by GitHub
parent a1203cf848
commit 897cb4b077

View File

@@ -280,3 +280,6 @@ Conventions for multi-line statements and expressions
.. code-block:: nim
startProcess(nimExecutable, currentDirectory, compilerArguments
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 `..`.