On 20 juil, 15:10, Michael Peters <[EMAIL PROTECTED]> wrote:
> Yanick wrote:
> > because there is no good reason
> > why a function should call itself back.
>
> Well, unless you're doing a recursive algorithm, and then you kinda need the
> function to call itself :)
>

Indeed, though if you test a recursive algorithm against a queue (or
something else) algorithm, you'll find out that recursive is hell
slow.  Thus should be avoided when scripting (if at all). I'm not
throwing off recursive algorithms, as I use it myself for some tasks,
but only when I know how deep the recursion will go. Nothing should be
used for everything :)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to