3 ms·
Kotlin also has compile time guaranteed tailcall with the tailrec function qualifier.
by The_rationalist 5y ago
Kotlin also has compile time guaranteed tailcall with the tailrec function qualifier.
- ackfoobar 5y agotailrec only handles "tail" recursion, i.e. tail calls to itself. This is far weaker than general tail "call" optimization required by the technique in the article.