4 ms·
They don't need tail calls, unless you're planning on doing idiomatic functional programming in an OO language, which, Why??
by jacinabox 9y ago
They don't need tail calls, unless you're planning on doing idiomatic functional programming in an OO language, which, Why??
- FascinatedBox 9y agoSome languages, such as Scala, have a mix of FP and OO concepts. Some FP features make use of TCO, so this helps to make them a first class citizen.
- samth 9y agoThe answer to your question is the entire point of the blog post, which was written by Guy Steele, who worked on the original design of Java.
- pjmlp 9y agoSmalltalk, the grandaddy of OOP languages uses idiomatic functional programming for its messages.
- jacinabox 9y agoOh yes, my mistake.