Skip to content

Commit

Permalink
nep1: prefer a..b to a .. b except if b has an operator (eg: `a…
Browse files Browse the repository at this point in the history
… .. -1`) (#16992)

* nep1: prefer `a..b` to `a .. b` except if b has an operator

* address comments

* address comment
  • Loading branch information
timotheecour authored Feb 10, 2021
1 parent a1203cf commit 897cb4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/nep1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 `..`.

0 comments on commit 897cb4b

Please sign in to comment.