Re:Rust will likely not support tail call optimization
by kvb on Wednesday April 10, 2013 @05:07PM
(#5528176)
Direct mutual recursion is somewhat rare (but useful for encoding state machines, for instance). However, using continuation passing style (and tail calls to a continuation argument) to prevent stack overflow is a common idiom in some functional languages (e.g. when mapping over a binary tree).
[ Parent
| on HN ]
There are no comments on this comment yet.