Am Sonntag, 22. Juli 2012 06:52:02 UTC+2 schrieb Reinier Zwitserloot:
>
> My personal opinion on TCO is that it is an academic boondoggle that 
> nobody needs and only functional junkies care about, but then I'm tempering 
> that rather arrogant opinion based on the fact that I've never managed to 
> really get into the functional mindset, so maybe I just haven't seen the 
> light yet. Still, rewriting a recursive method into a loop-based construct 
> with i.e. a stack is so trivial, I just don't understand why people 
> consider TCO to be such a big deal.
>

Guy Steele posted a nice essay on why rewriting it using loop-constructs is 
not trivial and why TCO is such a big deal (and frankly more than an 
optimization). It was originally posted on the Project Fortress blog [1], 
but that's no longer around. You can still find it in the archives [2], and 
then there's the always valuable discussions over at LTU [3].

[1]: 
http://projectfortress.sun.com/Projects/Community/blog/ObjectOrientedTailRecursion
[2]: 
http://wayback.archive.org/web/*/http://projectfortress.sun.com/Projects/Community/blog/ObjectOrientedTailRecursion
[3]: http://lambda-the-ultimate.org/node/3702

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/javaposse/-/yyhz_nJ_-XAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to