Re: [dev] [sbase] style

From: <k0ga_AT_shike2.com>
Date: Wed, 19 Nov 2014 19:58:28 +0100

 
>> types
>> =====
>> user defined types start with a capital letter
>> when possible typedef struct {} Name;
>
> Debatable. I'd like to hear more opinions on this.


For long time I followed the rule of kernel style of not using typedef
ever, but I changed it to the rule of using typedef only with structs
and capital letter, and I can say that this last is far better; You
get more readable function definitions:

        funcion(struct Term *term1, struct Term *term2)

becomes

        function(Term *term1, Term *term2)


Regards,
Received on Wed Nov 19 2014 - 19:58:28 CET

This archive was generated by hypermail 2.3.0 : Wed Nov 19 2014 - 20:00:44 CET