On Sunday, 10 July 2016 at 06:59:21 UTC, ketmar wrote:
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.
If attributes look messy, pragma can be used.
It may look as an addition with little gain, but one of the
reasons of compiling is to prevent runtime errors as early as
possible and this seeks exactly that.