[cfe-dev] [LLVMdev] draft rule for naming types/functions/variables

Michael Price - Dev michael.b.price.dev at gmail.com
Mon Nov 29 19:44:37 PST 2010


Besides the fact that mi is a horrible (non-descriptive) variable  
name, I far prefer mi over MI.

On Nov 29, 2010, at 1:02 AM, Anton Korobeynikov  
<anton at korobeynikov.info> wrote:

>> I enjoyed the new coding style in recent patches. Camel case makes  
>> it easy
>> to pick a descriptive name. Starting functions and variables with  
>> lower
>> cases reduces chances to conflict with a type name.
> Honestly speaking, I don't. Especially in the cases when varname is
> made from an
> acronym. E.g. MachineInstr *MI looks much better than MachineInstr  
> *mi, etc.
>
> See latest Rafael's patch as an example.
>
> -- 
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State  
> University
> _______________________________________________
> 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