std.xml should just go
Jesse Phillips
jessekphillips+D at gmail.com
Fri Feb 4 11:40:03 PST 2011
so Wrote:
> It doesn't matter what signature you use for the function, compiler is
> aware and will output an error when you do the opposite of the signature.
> If this is the case, why do we need that signature?
> Its presence just makes things complicated and with actually no reason.
Are you saying that having the compiler auto detect const functions is better? This has been discussed and not considered a 'hole.' By declaring the function const the compiler is able to inform you when you make a call which no longer makes this true. It does mean const will be used less then in C++, but if we just remove it that would still be the case.
More information about the Digitalmars-d
mailing list