Re: Problems reversing strings
From: Francis Glassborow (francis_at_robinton.demon.co.uk)
Date: Thu, 9 Sep 2004 19:33:04 +0100
In article <firstname.lastname@example.org>, Alwyn
>It's a difficult concept to understand, actually; it takes a lot of
>getting used to, especially if one's primary background is in
>imperative programming. Recursive data structures are often best
>handled by recursive algorithms. Sometimes one needs to rewrite a
>recursive algorithm as a looping one for the sake of time- or space
>efficiency, and learning to do this is an important programming skill.
>For these reasons, I believe it is never too early to introduce
OTOH recursion in languages that are not specifically designed to deal
with it can have serious problems for languages such as C++ many of
whose implementations use a limited stack for local variables.
-- Francis Glassborow ACCU Author of 'You Can Do It!' see http://www.spellen.org/youcandoit For project ideas and contributions: http://www.spellen.org/youcandoit/projects