On Tuesday, 17 June 2014 at 19:24:54 UTC, H. S. Teoh via Digitalmars-d wrote:
You can also compile a string mixin to detect if it uses deprecated features, no?

Not if it depends on configuration.

Also, detecting AST node presence is unreliable. What if it's needed for
compatibility with older compilers?

        static if (__VERSION__ < 2064L)
                useDeprecatedFeature();
        else
                useNewFeatureNotIn2064();

I don't think that should be legal, that is macro-like. The syntax should follow the language spec through and through.

In any case, they're relatively rarely used, so I don't see them as the
big problem that you seem to consider them to be.

They are a big problem for gofix/dfix.

I don't like them and I don't use them, so they are not a problem for me… but like "pure", it is a feature that counts against the language design.

Reply via email to