문제

Does Rascal do tail-call optimization? In particular, if I write code using tail recursion instead of those built-in loop construct, do I expect efficiency penalty?

도움이 되었습니까?

해결책

Yes, you should expect efficiency penalty with the current implementation.

We do expect the compiler (which is being written now) to do tail-call optimization in the future.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top