mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
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:
@@ -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 `..`.
|
||||
|
||||
Reference in New Issue
Block a user