4 ms·
A little further down it says “Luckily, even without JVM support, the Scala compiler can perform tail-call optimisation in some cases.”
by iainmerrick 9y ago
A little further down it says “Luckily, even without JVM support, the Scala compiler can perform tail-call optimisation in some cases.”
- jonalmeida 9y agoI'd say the full quote to be, "Luckily, even without JVM support, the Scala compiler can perform tail-call optimisation in some cases. The compiler looks for certain types of tail calls and translates them automatically into loops." This wouldn't be actual TCO in that case.
- iainmerrick 9y agoIf it’s done right, there would be no observable difference.