Re: Problems reversing strings
From: Francis Glassborow (francis_at_robinton.demon.co.uk)
Date: 09/09/04
- Next message: Gergely Buday: ""file function" ?"
- Previous message: Alwyn: "Re: About stack size"
- In reply to: Alwyn: "Re: Problems reversing strings"
- Next in thread: Alwyn: "Re: Problems reversing strings"
- Reply: Alwyn: "Re: Problems reversing strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 9 Sep 2004 19:33:04 +0100
In article <090920041701216462%dt015a1979@mac.com.invalid>, Alwyn
<dt015a1979@mac.com.invalid> writes
>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
>recursion.
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
- Next message: Gergely Buday: ""file function" ?"
- Previous message: Alwyn: "Re: About stack size"
- In reply to: Alwyn: "Re: Problems reversing strings"
- Next in thread: Alwyn: "Re: Problems reversing strings"
- Reply: Alwyn: "Re: Problems reversing strings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]