[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indent problem
From: |
silversurfer2025 |
Subject: |
Re: indent problem |
Date: |
17 Jul 2006 02:33:49 -0700 |
User-agent: |
G2/0.2 |
s. keeling schrieb:
> Miles Bader <miles@gnu.org>:
> > "silversurfer2025" <kietzi@web.de> writes:
> > >> so how do I change the code to not put brackets of functions into
> > >> the next line?
> > ...
> > > OK, maybe I'll have to change myself instead of changing the standards
> > > which exist.. I just liked my way of writing it better, but this might
> > > only be habituation..
> >
> > Maybe I should know better than to comment on coding style issues but:
> >
> > I find that although I can adjust to almost any of the common C / C++
> > coding conventions (though of course I have my preferences), the
> > "function-beginning-brace not at the start of line" is one of the hardest
> > to deal with; I find it simply makes code very hard to read.
>
> I think it depends on what you've taught yourself. I've taught myself
> to expect that that brace should be at the end of the line, so I have
> no trouble finding it. When that brace is at the beginning of a blank
> line, I feel nothing but resentment for the waste of a perfectly good
> line.
>
> btw, I got to this point by wanting consistency. If something's done
> this way in some cases, it makes sense for it to be done that way in
> most or all cases. If that brace should be at the end of the line in
> an if() block, it ought to be at the end of the line in a function
> declaration as well.
>
> Thank goodness for source code reformatting tools. Whichever way you
> choose to write it, I can easily reformat it to the form in which I
> prefer to read it.
Well this is exactly where we came from! I cannot set indent up to keep
the method bracket behind the method name,.. it puts them into a new
line everytime...
Any suggestions?
>
> --
> Any technology distinguishable from magic is insufficiently advanced.
> (*) http://www.spots.ab.ca/~keeling Linux Counter #80292
> - - http://www.faqs.org/rfcs/rfc1855.html
> Spammers! http://www.spots.ab.ca/~keeling/emails.html
- Re: indent problem, (continued)
- Re: indent problem, Alfred M. Szmidt, 2006/07/14
- Message not available
- Re: indent problem, silversurfer2025, 2006/07/14
- Re: indent problem, Alfred M. Szmidt, 2006/07/14
- Message not available
- Re: indent problem, silversurfer2025, 2006/07/14
- Re: indent problem, Miles Bader, 2006/07/14
- Re: indent problem, Alexander Terekhov, 2006/07/15
- Re: indent problem, silversurfer2025, 2006/07/15
- Re: indent problem, Alexander Terekhov, 2006/07/15
- Re: indent problem, s. keeling, 2006/07/15
- Re: indent problem, Miles Bader, 2006/07/16
- Re: indent problem,
silversurfer2025 <=