[cfe-dev] convention for naming identifiers

Argyrios Kyrtzidis kyrtzidis at apple.com
Thu Nov 18 17:18:44 PST 2010


On Nov 18, 2010, at 9:58 AM, Zhanyong Wan (λx.x x) wrote:

> On Thu, Nov 18, 2010 at 9:56 AM, Ted Kremenek <kremenek at apple.com> wrote:
>> On Nov 17, 2010, at 10:21 AM, Zhanyong Wan (λx.x x) wrote:
>> 
>>> One question is when a function/variable name should start with a
>>> lower-case letter ("Should I call it getLoc() or GetLoc()?").  Perhaps
>>> we can leave it unspecified for now though.
>> 
>> This is actually one of those points I'd love to disambiguate, or at least make consistent.
> 
> Glad to hear, Ted!  What's the rule you have in mind regarding this?

How about lower-case if it's a cheap operation (e.g a simple accessor) and upper if not ?

-Argiris

> 
> -- 
> Zhanyong
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev





More information about the cfe-dev mailing list