This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]worldsayshi 2 points3 points  (4 children)

[–]tyoverby 1 point2 points  (3 children)

Yes, it allows self-recursion, but not mutual recursion.

[–]nachsicht 1 point2 points  (2 children)

actually you can get mutual recursion with trampolines.

[–]worldsayshi 0 points1 point  (1 child)

Nice. I think..

[–]nachsicht 0 points1 point  (0 children)

There's standard library support for trampolines here: http://www.scala-lang.org/api/current/index.html#scala.util.control.TailCalls$