2 ms·I thought you had to manually mark the method (and/or the recur site) for scala to do tail call optimisations.by chii 9y agoI thought you had to manually mark the method (and/or the recur site) for scala to do tail call optimisations.andrioni 9y agoIt does the optimization by default, the annotation is to ensure it raises a compilation error if it actually fails to optimize.lomnakkus 9y agoIndeed, and it should be noted that it's quite limited in when it can actually apply the optimization, i.e. self-recursion only (I believe).