Y
Hacker News
new
|
ask
|
show
|
jobs
by
fhars
4815 days ago
Scala compiles direct tail recursion the a jump to the start of the function (jumps within a method are possible on the JVM) without any trampoline.
So @tailrec tells the compiler to compile this call to an unconditional jump.