search for: visittype

Displaying 4 results from an estimated 4 matches for "visittype".

2010 Nov 23
6
[LLVMdev] draft rule for naming types/functions/variables
...Case increases the chance of clashing between the two and thus sometimes makes it hard to choose good variable names. For example, if you have a function that takes a Type parameter, how would you name the parameter if it has to start with an upper-case? There are several obvious choices: void VisitType(Type T); // Bad -- T is too generic and could be mistaken for "temporary". void VisitType(Type Ty); // Bad -- Ty is not a well-known abbreviation. void VisitType(Type AType); // Unnecessarily awkward. In contrast, void VisitType(Type type); is readable and natural. The same a...
2010 Nov 23
0
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
...between the two and thus sometimes makes it hard > to > choose good variable names. For example, if you have a function > that > takes a Type parameter, how would you name the parameter if it has > to > start with an upper-case? There are several obvious choices: > > void VisitType(Type T); // Bad -- T is too generic and could be > mistaken for "temporary". > void VisitType(Type Ty); // Bad -- Ty is not a well-known > abbreviation. void VisitType(Type AType); // Unnecessarily > awkward. > > In contrast, > > void VisitType(Type type); &g...
2010 Nov 23
0
[LLVMdev] draft rule for naming types/functions/variables
...ce of clashing between the two and thus sometimes makes it hard to > choose good variable names.  For example, if you have a function that > takes a Type parameter, how would you name the parameter if it has to > start with an upper-case?  There are several obvious choices: > >  void VisitType(Type T);  // Bad -- T is too generic and could be > mistaken for "temporary". >  void VisitType(Type Ty);  // Bad -- Ty is not a well-known abbreviation. >  void VisitType(Type AType);  // Unnecessarily awkward. > > In contrast, > >  void VisitType(Type type); > &g...
2010 Nov 29
8
[LLVMdev] draft rule for naming types/functions/variables
...e two and thus sometimes makes it hard to > > choose good variable names. For example, if you have a function that > > takes a Type parameter, how would you name the parameter if it has to > > start with an upper-case? There are several obvious choices: > > > > void VisitType(Type T); // Bad -- T is too generic and could be > > mistaken for "temporary". > > void VisitType(Type Ty); // Bad -- Ty is not a well-known abbreviation. > > void VisitType(Type AType); // Unnecessarily awkward. > > > > In contrast, > > > >...