atom feed9 messages in org.apache.commons.devRe: [lang] Code clean up of "return (...
FromSent OnAttachments
Gary GregoryOct 8, 2004 4:01 pm 
Gary GregoryOct 8, 2004 4:11 pm 
Gary GregoryOct 8, 2004 4:19 pm 
David GrahamOct 8, 2004 5:14 pm 
Craig McClanahanOct 8, 2004 5:35 pm 
Gary GregoryOct 8, 2004 6:38 pm 
Stephen ColebourneOct 9, 2004 2:48 am 
Stephen ColebourneOct 9, 2004 2:53 am 
Gary GregoryOct 9, 2004 1:01 pm 
Subject:Re: [lang] Code clean up of "return (value);"?
From:Craig McClanahan (crai@gmail.com)
Date:Oct 8, 2004 5:35:50 pm
List:org.apache.commons.dev

On Fri, 8 Oct 2004 17:15:08 -0700 (PDT), David Graham <grah@yahoo.com> wrote:

This shows up in Struts quite a bit and I think Craig uses this convention. I don't personally care for it because Java needs less syntax rather than more :-).

It's a personal preference of mine to clearly highlight "this is an expression". I wouldn't be bothered by seeing it go away from return statements -- but I'm still going to put in "redundant" parentheses in my "if" statements rather than relying on the priority of the various operators :-).

David

Craig