HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by nicolast | Hacker News Reader
Parent
Full thread
nicolast
·
Which is +- what Scala allows with an annotation.
View on HN
fhars
·
No, scala's @tailrec annotation only guarantees that calls that can trivially be compiled to loops in fact are. You can't do better on a standard JVM without jumping through hoops (or, rather, trampolines).
Reply on news.ycombinator.com