Google Groups Home
Help | Sign in
Message from discussion Javascript recursion limit
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Jeff Bigham  
View profile
 More options May 16, 2:49 pm
Newsgroups: comp.lang.javascript
From: Jeff Bigham <jeffrey.big...@gmail.com>
Date: Fri, 16 May 2008 11:49:51 -0700 (PDT)
Local: Fri, May 16 2008 2:49 pm
Subject: Javascript recursion limit
So, it appears that Javascript has a recursion limit of about 1000
levels on FF, maybe less/more on other browsers.

Should such deep recursion then generally be avoided in Javascript?
Surprisingly, deep recursion actually isn't that slow for what I'm
doing.  Programming this task recursively is so much more
straightforward to me, but currently I'm forced to use an ugly hack to
avoid going over the 1000 level limit.  Of course, it could just break
if it's lower in another browser, so it's not ideal.

Is recursion not a viable option in Javascript?

Thanks,
Jeff


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google