Update article.md
Change to wording about maximum recursion depth.
This commit is contained in:
parent
8c30654f69
commit
78a6ffad05
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ function pow(x, n) {
|
|||
|
||||
The maximal number of nested calls (including the first one) is called *recursion depth*. In our case, it will be exactly `n`.
|
||||
|
||||
The maximal recursion depth is limited by JavaScript engine. We can make sure about 10000, some engines allow more, but 100000 is probably out of limit for the majority of them. There are automatic optimizations that help alleviate this ("tail calls optimizations"), but they are not yet supported everywhere and work only in simple cases.
|
||||
The maximal recursion depth is limited by JavaScript engine. We can rely on it being 10000, some engines allow more, but 100000 is probably out of limit for the majority of them. There are automatic optimizations that help alleviate this ("tail calls optimizations"), but they are not yet supported everywhere and work only in simple cases.
|
||||
|
||||
That limits the application of recursion, but it still remains very wide. There are many tasks where recursive way of thinking gives simpler code, easier to maintain.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue