Hacker News new | ask | show | jobs
by winstonlee 13 hours ago
Been a while since I last used it but there is @tailrec in Scala. The compiler does enforce it and optimize the resulting bytecode.