<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18975">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=chandlerc@google.com href="mailto:chandlerc@google.com">Chandler
Carruth</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=wan@google.com
href="mailto:wan@google.com">Zhanyong Wan (λx.x x)</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=kyrtzidis@apple.com
href="mailto:kyrtzidis@apple.com">Argyrios Kyrtzidis</A> ; <A
title=cfe-dev@cs.uiuc.edu href="mailto:cfe-dev@cs.uiuc.edu">clang-dev
Developers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, November 23, 2010 6:40
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [cfe-dev] draft rule for
naming types/functions/variables</DIV>
<DIV><BR></DIV>
<DIV class=gmail_quote>On Mon, Nov 22, 2010 at 9:36 PM, Zhanyong Wan (λx.x x)
<SPAN dir=ltr><<A
href="mailto:wan@google.com">wan@google.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV class=im>On Mon, Nov 22, 2010 at 9:30 PM, Chandler Carruth <<A
href="mailto:chandlerc@google.com">chandlerc@google.com</A>>
wrote:<BR>> Sorry, this seems to have not followed the thread, but here
was my comment:<BR>> <A
href="http://codereview.appspot.com/3264041/diff/1/docs/CodingStandards.html#newcode801"
target=_blank>http://codereview.appspot.com/3264041/diff/1/docs/CodingStandards.html#newcode801</A><BR>>
docs/CodingStandards.html:801: camel case (e.g.
<tt>TextFileReader</tt><BR>> and
<tt>isLValue</tt>).<BR>> I would really prefer some stylistic
difference between variables and<BR>> types/functions. This is mostly a
problem (for me) with local variables,<BR>> where having some signifier
of the locality helps me in reading it.<BR><BR></DIV>Agreed. That's
why types start with upper-case while variables start<BR>with lower-case in
my proposal.<BR></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>This however leaves no distinction between functions and variables. I
suppose this isn't a terrible compromise because of the ()s, but I would like
it best to have a different style for each.</DIV>
<DIV><FONT size=2></FONT> </DIV></DIV></BLOCKQUOTE>
<DIV><FONT size=2>What if the variable is an function object? </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Bo Persson</FONT></DIV>
<DIV> </DIV></BODY></HTML>