javaweb-people
[Top][All Lists]
Advanced

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

[Javaweb-people] If everyone's happy... (about code style)


From: Nic Ferrier
Subject: [Javaweb-people] If everyone's happy... (about code style)
Date: 31 Jan 2002 21:29:32 +0000

I think we're done about code formatting, it's great that we didn't
get into too much of a discussion about this, I think we're all
broadly agreed (if I'm jumping the gun here, do please let me know!)


I'll write an addendum to the code style document with the java style
we've agreed and put that round this list.


Out of interest: I've just tested indent against some of Per's source
and some of my source.

It pretty much works already.

Some things from our style it doesn't do, here's a breakdown of
the issues:


- correct formatting of space before parenthesis
  We want a special option for this, "space before decl/statement
  parenthesis only".

- indentation is screwed by a hanging statement beginning with a non-C
  keyword, eg:

     if (something)
       throw new ...
       more_statements;

- the famous "extends" and "implements" are not on their own lines

- a blank line is not put in after the "package" decl.

- comments aren't parsed (not sure they ever will be, this is a big
  job).



I think I should be able to fix all of these. It looks like the indent
developers aren't the most open bunch in the world (going purely by
the README which basically tells C++ developers to get lost) but I'm
sure we can get patches in for java.


Thanks again everyone.



Nic



reply via email to

[Prev in Thread] Current Thread [Next in Thread]