<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Oct 13, 2014, at 3:04 PM, Nick Kledzik <<a href="mailto:kledzik@apple.com">kledzik@apple.com</a>> wrote:<div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I’d like to discuss revising the LLVM coding conventions to change the naming of variables to start with a lowercase letter.  This should not be a discussion on the pain of such a transition, or how to get from here to there, but rather, if there is a better place to be.  <br><font color="#0f61c8"><br></font>5. Momentum only.  When I’ve talked with various contributors privately, I have found no one who says they likes capitalized variables.  It seems like everyone thinks the conventions are carved in stone…  <br></div></blockquote><div><br></div><div>Personally, I think that lower case local variables are the way to go.  I could see it either way for instance variables, but being lower case is consistent.</div><div><br></div><div>-Chris</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><font color="#0f61c8"><br><br></font>My proposal is that we modify the LLVM Coding Conventions to have variable names start with a lowercase letter.  <br><font color="#0f61c8"><br></font><span style="font-family: Monaco; font-size: x-small;">Index: CodingStandards.rst</span><br><span style="font-family: Monaco; font-size: x-small;">===================================================================</span><br><span style="font-family: Monaco; font-size: x-small;">--- CodingStandards.rst</span><span class="Apple-tab-span" style="font-family: Monaco; font-size: x-small; white-space: pre;">        </span><span style="font-family: Monaco; font-size: x-small;">(revision 219065)</span><br><span style="font-family: Monaco; font-size: x-small;">+++ CodingStandards.rst</span><span class="Apple-tab-span" style="font-family: Monaco; font-size: x-small; white-space: pre;">       </span><span style="font-family: Monaco; font-size: x-small;">(working copy)</span><br><span style="font-family: Monaco; font-size: x-small;">@@ -1073,8 +1073,8 @@</span><br><span style="font-family: Monaco; font-size: x-small;">   nouns and start with an upper-case letter (e.g. ``TextFileReader``).</span><br><span style="font-family: Monaco; font-size: x-small;"> </span><br><span style="font-family: Monaco; font-size: x-small;"> * **Variable names** should be nouns (as they represent state).  The name should</span><br><span style="font-family: Monaco; font-size: x-small;">-  be camel case, and start with an upper case letter (e.g. ``Leader`` or</span><br><span style="font-family: Monaco; font-size: x-small;">-  ``Boats``).</span><br><span style="font-family: Monaco; font-size: x-small;">+  be camel case, and start with a lower case letter (e.g. ``leader`` or</span><br><span style="font-family: Monaco; font-size: x-small;">+  ``boats``).</span><br><span style="font-family: Monaco; font-size: x-small;">   </span><br><span style="font-family: Monaco; font-size: x-small;"> * **Function names** should be verb phrases (as they represent actions), and</span><br><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="margin: 0px;"><font face="Monaco" size="1" class="">   command-like function should be imperative.  The name should be camel case,</font></div></div></div></div></div>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></body></html>