File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -537,6 +537,20 @@ compare it to let/in and where constructs maybe?
537
537
538
538
TODO
539
539
540
+ = head1 Tail Call Optimization or Tail Call Elimination
541
+
542
+ Haskell and many other functional programming languages use tail call optimization, also
543
+ sometimes called tail tall elimination, to remove the stack overhead of some types
544
+ of recursive function calls.
545
+
546
+ There is nothing in the Raku language specification forbidding the implementation of this
547
+ class of optimization, but no current implementation has it.
548
+
549
+ Please note that many Haskell looping constructs use recursive function calls. Haskell programs
550
+ would encounter stack overflow errors more often without tail call optimization. The standard
551
+ Raku looping constructs are not built on recursive function calls, which makes the feature
552
+ less important.
553
+
540
554
= begin comment
541
555
542
556
### Guidelines for contributions:
You can’t perform that action at this time.
0 commit comments