Generic programming ramifications of const by default
Jascha Wetzel
firstname at mainia.de
Tue Jun 12 02:27:29 PDT 2007
Walter Bright wrote:
> Don Clugston wrote:
>> If const-by-default is OK for normal functions (including CTFE), I
>> find it hard to believe it would be particularly problematic for
>> metaprogramming.
>
> We just don't know.
If these issues can only be solved through experiments, why not
experiment? Since D 2.0 is a development branch now anyway, it could
have a switch that enables const-by-default. A few months later we'll
know more...
Correct me if i'm wrong, but my understanding is that the CbD feature
itself is easily implemented in the compiler. Therefore this shouldn't
lead to a lot of potentially lost work.
More information about the Digitalmars-d
mailing list