Updated Style Guide for Nim Code (markdown)
This commit is contained in:
parent
ba60587912
commit
176f0ec941
|
@ -113,6 +113,8 @@ changed in the future.
|
||||||
LinkToFile
|
LinkToFile
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- In the age of HTTP, HTML, FTP, TCP, IP, UTF, WWW it is foolish to pretend these are somewhat special words requiring all uppercase. Instead tread them as what they are: Real words. So it's ``parseUrl`` rather than ``parseURL``, ``checkHttpHeader`` instead of ``checkHTTPHeader`` etc.
|
||||||
|
|
||||||
### Coding Conventions ###
|
### Coding Conventions ###
|
||||||
- The 'return' statement should only be used when it's control-flow properties
|
- The 'return' statement should only be used when it's control-flow properties
|
||||||
are required. Use a procedures implicit 'result' variable instead. This
|
are required. Use a procedures implicit 'result' variable instead. This
|
||||||
|
|
Loading…
Reference in New Issue