3 ms·
I'd recommend you read Guy Steele's blog post Why Object-Oriented Languages Need Tail Calls [1] and perhaps the essay by William Cook [2] and the discussion ove
by EdwardCoffin 3y ago
I'd recommend you read Guy Steele's blog post Why Object-Oriented Languages Need Tail Calls [1] and perhaps the essay by William Cook [2] and the discussion over on Lambda the Ultimate [3]
[1] https://web.archive.org/web/20091206042608/http://projectfortress.sun.com/Projects/Community/blog/ObjectOrientedTailRecursion https://web.archive.org/web/20091206042608/http://projectfor...
[2] https://www.cs.utexas.edu/~wcook/Drafts/2009/essay.pdf https://www.cs.utexas.edu/~wcook/Drafts/2009/essay.pdf
[3] http://lambda-the-ultimate.org/node/3702 http://lambda-the-ultimate.org/node/3702
- Joel_Mckay 3y agoSure, or just add a polymorphic functor to walk a tree autonomously. There are shorter ways to admit you already sold your soul. lol =)