Re: [Vala] Lowercase everything in C code?



Hi Mikael

On Thu, 2007-12-06 at 13:10 +0100, Mikael Hermansson wrote:
The think is I have an little idea how the C source should be written.

Right now class FooBar will be mapped as foo_bar_* in c

but if I add a function in the class with name beginning with upparcase
it will be mapped uppercase to. for example: 

class FooBar() : Object
{ public Bas()
  { some code 
  }; 

} 

Will be mapped as foo_bar_Bas()

why not lowercase eerything? this way its is simplier lookup function
names when I want to debug Vala code in cgdb/gdb and so on. Also the c
code looks cleaner :-)

The coding convention in Vala is to not use uppercase letters for method
names. If you follow that, you'll always have lowercase function names
in the generated C code. I don't know whether we should always default
to lowercase C names; I don't really care as I won't use uppercase
letters in method names but I can add the lowercase transformation if
people think that it's useful.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]