On Friday, 27 July 2012 at 19:04:07 UTC, Stuart wrote:
On Friday, 27 July 2012 at 16:28:50 UTC, Dmitry Olshansky wrote:
But this advantage is unimportant since arbitrary deep
recursion is a security risk (especially for servers that
typically use threads with tiny stacks).
I would like to point out here that the example VB.NET code I
just gave for lazy-populating a list of all files on a drive
uses NO recursion whatsoever.
Recursion isn't just a security risk - it's a performance hit
as well.
Only in languages without tail call optimizations.