DIP: Tail call optimization

ketmar via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Jul 9 23:59:21 PDT 2016


On Sunday, 10 July 2016 at 06:44:22 UTC, Dietrich Daroch wrote:
> Yes, there is no cure for poor skills, but the point is to 
> prevent the need to avoid recursion to ensure there are no 
> stack overflows. It seems reasonable considering D targets 
> systems programming.

i see "system programmer" as someone who is able to understand 
when TCO is in effect without additional attribute noise. and for 
others it just doesn't matter -- as they probably is using a 
library written by "system programmer" anyway, and won't dive 
into code. ;-)

sorry, it is really just a noise, like "@nogc". compiler does a 
fairly good work on TCO already, and adding another attribute 
will just make code messier. it is already @too @many @attributes 
@in @D.


More information about the Digitalmars-d-announce mailing list