Thiago Farina
2010-Dec-05 00:25 UTC
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
On Sat, Dec 4, 2010 at 5:14 AM, Chris Lattner <clattner at apple.com> wrote:> Thiago, > > The coding standards (which have been finalized and comitted) don't dictate names for local variables. >Do you like the fact that local variables start with capital letter? Following the same convention used to name classes? It's a very strange adoption. I like the way that classes are named using CamelCase (MyClass, for example) and the instance of MyClass is my_class. That avoids many confusions in my brain. This convention used here: MyClass* MC = new MyClass, is an obstacle for external contributors used to work with C for example, where almost everything (and every project) uses the unix_hacker style.
Chris Lattner
2010-Dec-05 01:18 UTC
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
On Dec 4, 2010, at 4:25 PM, Thiago Farina wrote:> On Sat, Dec 4, 2010 at 5:14 AM, Chris Lattner <clattner at apple.com> wrote: >> Thiago, >> >> The coding standards (which have been finalized and comitted) don't dictate names for local variables. >> > > Do you like the fact that local variables start with capital letter? > Following the same convention used to name classes? It's a very > strange adoption.Yes. FWIW, we weight people's opinions on coding conventions by the number of lines they have contributed to LLVM. I'm sorry you don't like the current style, but it isn't going to change radically. -Chris
Thiago Farina
2010-Dec-05 01:29 UTC
[LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
On Sat, Dec 4, 2010 at 11:18 PM, Chris Lattner <clattner at apple.com> wrote:> > On Dec 4, 2010, at 4:25 PM, Thiago Farina wrote: > >> On Sat, Dec 4, 2010 at 5:14 AM, Chris Lattner <clattner at apple.com> wrote: >>> Thiago, >>> >>> The coding standards (which have been finalized and comitted) don't dictate names for local variables. >>> >> >> Do you like the fact that local variables start with capital letter? >> Following the same convention used to name classes? It's a very >> strange adoption. > > Yes.You like, but many others don't like. I'm sure.> I'm sorry you don't like the current style, but it isn't going to change radically. >I'm not arguing that it has to change (actually I don't care :)). I'm just expressing my discontent about it.
Reasonably Related Threads
- [LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
- [LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
- [LLVMdev] [cfe-dev] draft rule for naming types/functions/variables
- [PATCH v2] am: Allow passing exclude and include args to apply
- [HCL] NHS Laser Senoidal 5000VA supported by gamatronic