[e-lang] E-on-Java code formatting
Mark S. Miller
markm at cs.jhu.edu
Wed Apr 11 15:42:38 CDT 2007
Kevin Reid wrote:
> MarkM: the version of my Proxy code you checked in seems to have all
> whitespace on empty lines removed:
>
> protected boolean isResolvedIfNotForwarding() {
> return false;
> }
> <---- 4 spaces in my version, 0 in repository
> protected void __printOnIfNotForwarding(TextWriter out)
> throws IOException {
> out.write("<Remote Promise>");
> }
>
> Is this a deliberate formatting choice or an accident, and if the
> latter, is having the spaces preferred?
Somewhere between the two. In order to give the Java code in the E-on-Java
source tree a more consistent style, I have Intellij IDEA automatically apply
as many of my formatting preferences as it can, and manually normalize for the
remainder (like the 79-column limit).
Regarding the specific issue above, I have IDEA set to trim all trailing
whitespace, since it is invisible anyway. However, since it affects neither
the meaning nor the look of the program, I also don't care much.
--
Text by me above is hereby placed in the public domain
Cheers,
--MarkM
More information about the e-lang
mailing list