single return from function

"alex_us01" <[email protected]> Fri, 16 Nov 2012 02:09:24 -0000
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
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&threadID=16937




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

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/