advsync: Use different set of variable names (was Re: [PATCH 0/3] Patches for recent updates)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | advsync/memorybarriers: Use non-confusing variable namesadvsync/ | +49 | 0 replies | |
| 2/2 | advsync/memorybarriers: Fix trivial typoadvsync/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] advsync: Use different set of variable names (was Re: [PATCH 0/3] Patches for recent updates)
Quoted 33 lines · Paul E. McKenney
Quoted 32 lines · Akira Yokosawa
Quoted 18 lines · Paul E. McKenney
Quoted 10 lines · Akira Yokosawa
Quoted 1 line
From
cbb7797d6b307850a280248589bc09b8852e8a68Mon Sep 17 00:00:00 2001From: Akira Yokosawa <[email protected]>
Date: Fri, 23 Dec 2016 16:46:06 +0900
Subject: [PATCH 0/3] Patches for recent updatesHi Paul,
This short patch set consists of fixes to recent updates in advsync/memorybarriers.
Quoted 6 lines
I'm not sure what is your preference of quotation of short variable names and keywords. In the 1st patch, I chose the form of ~~\co{a}''. If you prefer other one, please let me know.
Ya, I know a variety of styles are mixed-used in perfbook, reflecting various original publications...
Quoted 7 lines
My current rule is that an identifier can be mistaken for an English word or letter of the alphabet, then it should be in double quotation marks and under \co{}, consistent with your changes. However, something like "
rcu_node" cannot reasonably be mistaken for English, so it only needs \co{}.Thoughts?
So, the cause of potential confusion here is the use of variable name "a", isn't it? If "a" were not there, other variable names b, c, q, x, and y would not need quotation marks, I suppose.
"if", "then", and "else" still need quotation.
Quoted 5 lines
Quoted 1 line
Hmm?
Indeed, "a" is the main cause of confusion that leads me to believe that single-letter variable names need quotes. Unless the variable names are capitalized, in which case "I" is the bad boy. ;-)
Well, "A" at the begging of a line is also confusing.
So in this case, we have another option to use a different set of variable names and get rid of quotation marks.
For example, the following patch uses x, y, and z instead of "a", "b", and "c". x and y are used in the explanation of transitivity, but they are not confusing to be used in the first half of this section.
Thoughts?
Thanks, Akira
P.S.
There was another trivial typo. 2nd patch fixes it within this context.
Signature · 9 lines
Akira Yokosawa (2): advsync/memorybarriers: Use non-confusing variable names advsync/memorybarriers: Fix trivial typo advsync/memorybarriers.tex | 98 +++++++++++++++++++++++----------------------- 1 file changed, 49 insertions(+), 49 deletions(-) -- 2.7.4