mutable compile-time data proposal
Mariusz Gliwiński
alienballance at gmail.com
Wed Dec 28 21:18:33 PST 2011
Andrei Alexandrescu wrote:
> I don't think such a feature has a huge potential use. I honestly think
> it's a "meh" feature. It's a feature for defining elaborate literals,
> and for that we have the shock and awe of mixin and CTFE.
Actually, i already needed it few times in my D project (and still need).
I think people are just not used to treat compile-time as just another time
of execution and they don't see value of it.
While uneducated coder as me (advantage of seeing things with fresh eye)
sees CTFE as natural thing to do when input data is known, and computation
power is bigger than memory read && executable growth.
Of course it might be done by preprocessing sources but that's a pain in the
ass.
For me, question would be not "if it's useful", but "is it easy to implement
and if it's not hurting compiler performance too much".
More information about the Digitalmars-d
mailing list