lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: whitespace
Date Sun, 25 Mar 2007 19:25:32 GMT

: The java coding standards do say
: "Spaces after keywords but no spaces either before or after
: parentheses in method calls"
:
: "if (a)" and "foo(a)"

that's fairly readable in general, but i have found that when dealing with
complex conditionals, a little extra white space can make some things
standout that thta might otherwise be overlooked...

  if (!(a||b))      vs    if ( ! (a || b) )

  while (foo(asdfasdfadsf) && bar(asdfasdfasdf) && (baz(asdfasdfadsf) || yak(23456)))
{

vs...

  while ( foo(asdfasdfadsf) &&
          bar(asdfasdfasdf) &&
          ( baz(asdfasdfadsf) || yak(23456) ) ) {



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message