Re: Different styles

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

 



On Wed, 2016-05-25 at 16:12 +0200, Victor Toso wrote:
> Hi!
> 
> On Wed, May 25, 2016 at 08:31:45AM -0400, Frediano Ziglio wrote:

> > I personally find that vertical indentation tend to cause long lines and
> > it's hard to maintain when new declarations are added (like requiring
> > new indentation)
> 
> I personally like it with struct members or function arguments. As you
> put some samples above, why not:
> 
> struct TosoClass {
>     gchar       *name;
>     guint8       age;
> 
>     BigStructureHere    *ptr;
>     SmallerSt            abc;
> };
> 
> static void multiple_arg_fn(const gchar         *name,
>                             guint8               age,
>                             BigStructureHere   **pp,
>                             SmallerSt           *edf)
> {
> 
> :-)

Purely a personal preference of course, but I really dislike that. It means that
if I add a really long struct member or function argument, I have to choose
between re-indenting everything (which makes e.g. git blame less useful), or
having mis-aligned struct members.

Jonathon
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]