[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f23b802: Add rules for arithmetic operators a
From: |
Vadim Zeitlin |
Subject: |
[lmi-commits] [lmi] master f23b802: Add rules for arithmetic operators and floating point numbers |
Date: |
Mon, 12 Mar 2018 06:01:25 -0400 (EDT) |
branch: master
commit f23b802ae57775cf0ec0ba18fb4e068f4c440335
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>
Add rules for arithmetic operators and floating point numbers
Record that spaces are required around operators and floating point
numbers should have an explicit fractional part.
---
vz/Style-guide.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/vz/Style-guide.md b/vz/Style-guide.md
index a61ff4f..70290cb 100644
--- a/vz/Style-guide.md
+++ b/vz/Style-guide.md
@@ -113,6 +113,10 @@ for(;;)
}
```
+### Use space around arithmeric operators
+
+E.g. `(x + y) * z` instead of `(x+y)*z`.
+
Naming Conventions
------------------
@@ -135,6 +139,14 @@ Although some legacy code does use this prefix, it
shouldn't be used in new
code if possible.
+Other
+-----
+
+### Explicitly write fractional part of floating point numbers as 0
+
+I.e. `1.0` instead of just `1.`.
+
+
Semantic Rules
==============
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master f23b802: Add rules for arithmetic operators and floating point numbers,
Vadim Zeitlin <=