Trying to understand the reason for future referen...
# announcements
r
Trying to understand the reason for future reference why
inline
functions marked as
tailrec
can't be recursive in Kotlin. Is that because of fear of inlining too much?. Shouldn't
tailrec
take precedence and what gets inline is just a
while
loop? Thanks!
d
I would suspect it's a limitation of the compiler, tail-recursion optimization might happen at a later stage than inlining.