Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

RE: Re: Recursion

by lolindrath (Scribe)
on Nov 15, 2000 at 00:36 UTC ( #41642=note: print w/ replies, xml ) Need Help??


in reply to Re: Recursion
in thread Recursion

I disagree, most looping problems can be made into a recursive function and vise versa.

--=Lolindrath=--


Comment on RE: Re: Recursion
RE: RE: Re: Recursion
by Fastolfe (Vicar) on Nov 15, 2000 at 00:48 UTC
    Don't think of it in terms of the suitability for the language. Perl can do either just as well as any other language. Think of it in terms of the problem you're trying to solve. Does it make more sense to use a recursive algorithm or an iterative one? Perl is fine either way, like most languages.
RE: RE: Re: Recursion
by merlyn (Sage) on Nov 15, 2000 at 01:06 UTC
    Yes, and most cars can be used as trucks, and most trucks can be used as cars. Questions with "better" are rarely answerable until we understand what the context is, and what you're optimizing for.

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://41642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-12-19 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (94 votes), past polls