On Mon, Oct 19, 2009 at 4:00 PM, Yonik Seeley
<yo...@lucidimagination.com> wrote:
> On Mon, Oct 19, 2009 at 3:45 PM, Mark Miller <markrmil...@gmail.com> wrote:
>> but there is some old source code here and
>> there that really bugs me
>
> Is it Doug's
>
>  if (foo)
>     bar()
>  else {
>    baz();
>  }
>
> or is it my single line
>
>  if (a==null) return 0;
>
> ;-)

Or my always doing this up until a while ago:

  if (foo)
    something;

but then suddenly [trying to] switch to the correct:

  if (foo) {
    something;
  }

?

> One of my personal pet peeves is more indentation than necessary for
> large blocks of code, rather than just immediately handling the
> exception cases and escaping. Example:

Hmm I think I tend to do this :)

But I agree, your way IS more readable so I'll try to switch!

Mike

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

Reply via email to