1 Comment

I'm wondering if the compiler could detect a tail recursion and enable tailrec automatically. If so, why is it a keyword and not something that's done by default whenever possible. Would there be any drawback in doing this?

Expand full comment