A wise old hermit known only as Dmitri Colebatch <[EMAIL PROTECTED]> once 
said:

> On Wed, 14 Nov 2001, Ara Abrahamian wrote:
> 
> > Wrong! I like the second one! It shows you variables in a piece of 
> > code
> > better. So in case you were searching for the definition of variable 
> > foo
> > in a method it's easier to find.
> > I also turned on the flag which inserts empty lines between variable
> > definitions and normal code and also another flag that tell
> > prettyprinter to insert an empty line before if/switch/etc blocks so
> > that it's easier to read and the density of a piece of code is not 
> > high!
> 
> ahhh... ok.  given how little I've spent doing things recently, I hardly
> think that my preference on this should outweigh yours! (o:  So I'll
> change it back... I suppose its also related to where you declare
> variables in a method.  if we're using that indenting style, then I 
> assume
> that we should also explicitly state that we should declare all 
> variables
> at the top of the block - I cant think of any places in the code where
> this is not the case, but thought it worth mentioning.

What about variables local to a block e.g. deep in three-deep nested ifs?
Will it put them back at the original indent level too, or just to the 
level of the nested if's opening brace?  If the latter, then I don't think 
it makes it any easier to find than just having declarations at the top of 
a block with a blank line before the code.

Still, what do I know - I actually prefer opening braces on the same line 
(except for the class/method definitions), since that lets you see more of 
the code on a single page...

> > But that's only me and not the whole team, so I accept your fix too 
> > :-)
> 
> as I said above, I will now change it back.  If the whole team prefers 
> my
> suggestion, then after consensus I'd be happy to see it changed again, 
> but
> I'm not in favour of my preferences setting the norm unless I'm very
> active, which I'm not currently )o:

What you need is an IDE that displays it with whatever format you prefer 
but saves it in a different preset format, say by having the load/save 
actions call a suitable <pretty> ant script.  Now there's an idea for a 
new NetBeans module :-)


Andrew.

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to