On 7/19/2014 11:55 PM, bearophile wrote:
Walter Bright:
If you want to guarantee replacement of a recursive call with a loop, just
write a loop.
There are cases where a recursive algorithm is nicer. And people that want to
use D functionally, may also be used to writing code recursively.
I doubt they'll want to use an @tailrec attribute.
What about the @continuation
(http://en.wikipedia.org/wiki/Continuation-passing_style )?
I doubt they'll want to use that attribute, either.
In any case, D supports more styles of programming than any other language I can
think of. I doubt adding even more will be that helpful.