RE: single return from function

"Amir Kolsky" <[email protected]> Mon, 10 Dec 2012 17:51:16 -0800
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
Supposedly makes compiler optimizations easier - you may ignore this at this
point in life.

 

From: [email protected] [mailto:[email protected]] On
Behalf Of alex_us01
Sent: Thursday, November 15, 2012 6:09 PM
To: [email protected]
Subject: [refactoring] single return from function

 

  

On the internet, I found somewhere* that the Refactoring book advocates for
a single return from a function (thus, promoting assigning values to a
variable, such as result, and then say return result; at the end).

Is that true?

I couldn't find it anywhere in the online catalog.

Thanks!

* see item 8 (might change)
http://www.javalobby.org/forums/thread.jspa?forumID=61
<http://www.javalobby.org/forums/thread.jspa?forumID=61&threadID=16937>
&threadID=16937





[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/