DIP: Tail call optimization
Tofu Ninja via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon Jul 11 03:25:36 PDT 2016
On Sunday, 10 July 2016 at 13:15:38 UTC, Andrew Godfrey wrote:
> Btw here's a thread from 2014 that touches on the idea of a
> "tailrec" annotation. At the time, Walter viewed the
> optimization as the compiler's business and not something he'd
> elevate to a language feature:
>
>
> http://forum.dlang.org/post/lqp6pu$1kkv$1@digitalmars.com
I find it odd that something like tail recursions that actually
makes certain things possible that wouldn't be otherwise is seen
as only an optimization, when things like inlining which really
is only an optimization is seen as important enough to have a
pragma.
More information about the Digitalmars-d-announce
mailing list