4 ms·I know scala has a @tailrec annotation which will fail to compile if the function is not tail recursive.by denis1 12y agoI know scala has a @tailrec annotation which will fail to compile if the function is not tail recursive.