Java 8 requires functional languages to optimize their own tail calls for the time being. What exactly does that involve? I was recently asked whether Java SE 8 contained an optimization for tail calls, which are a special kind of function call. This optimization is most relevant for recursive calls, which are particularly important for functional languages, as they often rely on recursive design and coding patterns. In this article, I examine exactly what a tail call is, how it can be optimized effectively, and where Java 8 stands in terms of implementing this optimization. Before we dive in,
Read full article from Tail Call Optimization and Java | Dr Dobb's
No comments:
Post a Comment