Software Assurance Reference Dataset

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 20 00:27:30 PDT 2014


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.


More information about the Digitalmars-d mailing list