diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2021-02-19 17:47:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 15:47:03 -0800 |
commit | 1efaef52a2f916441d153917486ef8a4218a6111 (patch) | |
tree | a604777bcc35e9ca7e1e915f0466e2f8fd23b4b9 /doc | |
parent | da52e81327594ac65c80ddc8d2c7cb152f4b1b24 (diff) | |
download | Nim-1efaef52a2f916441d153917486ef8a4218a6111.tar.gz |
[nep1] Use `std` prefix for standard library modules (#17105)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nep1.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/nep1.rst b/doc/nep1.rst index 3c7c69794..952856683 100644 --- a/doc/nep1.rst +++ b/doc/nep1.rst @@ -167,7 +167,7 @@ new newFoo initializes a reference type ``Foo`` via ``new`` this or self self for method like procs, e.g.: `proc fun(self: Foo, a: int)` - rationale: `self` is more unique in english + rationale: `self` is more unique in English than `this`, and `foo` would not be DRY. find find should return the position where something was found; for a bool result @@ -287,6 +287,9 @@ Miscellaneous - 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 `..`. +- Use `std` prefix for standard library modules, namely use `std/os` for single module and + use `std/[os, sysrand, posix]` for multiple modules. + - Prefer multiline triple quote literals to start with a newline; it's semantically identical (it's a feature of triple quote literals) but clearer because it aligns with the next line: |