<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 22, 2010, at 9:40 PM, Chandler Carruth wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; "><br class="Apple-interchange-newline">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></span></blockquote><br></div><div>I don't find this to be a compelling argument.  By that reasoning, all field names should be m_foo and such horrible things.  If a local variable has such a large live range to make it ambiguous or confusing, then something else is already wrong.</div><div><br></div><div>To me, the most important thing about having a naming convention is to just make it completely consistent and predictable everywhere instead of people having to remember that one API is isFoo() and another is IsBar().</div><div><br></div><div>Don't try to go all hungarian and encode semantics into names through subtle distinctions...</div><div><br></div><div>-Chris</div></body></html>