Hey Peter,
I think Tyler wants to add where |pipe| notation is commonly used
because he and I are unsure of what it means. He had an initial
conception coming on to Chrome relatively recently that it's akin to
using ` on stackoverflow or github or anywhere you'd want text wrapped
with a <code> or <pre> tag in general (if showing documentation in
HTML, that is).
> There is nothing wrong with not doing this and no reason to have a style
> rule about it.
The problem is not with people "not doing this", but with authors
doing this _too_ much and adding |pipes| around anything that should
be monospaced or look like code.
Additionally, we already do this in the style guide around |params|,
but we don't really clarify if that's the only place one should be
doing this (or where else it'd be appropriate).
Please advise,
Dan Beam
db...@chromium.org
I think Tyler wants to add where |pipe| notation is commonly usedbecause he and I are unsure of what it means. He had an initial
conception coming on to Chrome relatively recently that it's akin to
using ` on stackoverflow or github or anywhere you'd want text wrapped
with a <code> or <pre> tag in general (if showing documentation in
HTML, that is).
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
This rule is present in the Objective-C style guide. It should be in the Chromium style guide too. It's a good rule and ends debates on comment style.
If the C++ style guide doesn't have it, one wonders why they elected not to copy the ObjC guide.
I have not seen any debates on codereviews or whatever on comment style.
I continue to feel we would be better without adding this rule. And since I am usually eager to add new style rules for everything, and am one of the people who use this style most commonly and consistently, I think that says something.