All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] CODING_STYLE: discourage use of underscores where alternatives exist
@ 2018-06-07 13:56 Jan Beulich
  2018-06-07 21:21 ` Julien Grall
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2018-06-07 13:56 UTC (permalink / raw)
  To: xen-devel
  Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
	Ian Jackson, Tim Deegan, Julien Grall

Underscores commonly require two keypresses while hyphen / dash requires
just one, and the visual separation effect of both is basically the same.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/CODING_STYLE	2017-08-09 14:07:41.565057836 +0200
+++ b/CODING_STYLE	2018-06-07 15:52:55.136611092 +0200
@@ -106,6 +106,15 @@ separate lines and each line should begi
  * Note beginning and end markers on separate lines and leading '*'.
  */
 
+Choice of names
+---------------
+
+While for identifiers underscores are unavoidable when a visual
+separator beween name components is wanted, in other cases, where a
+wider set of non-alphanumeric characters can be chosen from, the use
+of underscores is discouraged.  For example, for file names and
+command line options a hyphen / dash is commonly easier to type.
+
 Emacs local variables
 ---------------------
 



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-11 11:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-07 13:56 [PATCH] CODING_STYLE: discourage use of underscores where alternatives exist Jan Beulich
2018-06-07 21:21 ` Julien Grall
2018-06-08  6:27   ` Jan Beulich
2018-06-11 11:26     ` George Dunlap
2018-06-11 11:26     ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.