Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
kriiuuu
· 2y ago · 0 comments
Both Scala3 and Kotlin allow you to annotate functions with @tailrec which will give you a compiler warning if the compiler can’t optimize. And if you use the xfatal-warn compiler flag the Scala code won’t compile if your function is not tail call.
Comments
No comments yet.
Better HN