Implicit enum conversions are a stupid PITA

bearophile bearophileHUGS at lycos.com
Tue Mar 23 16:35:31 PDT 2010


Nick Sabalausky:
> It still bugs the hell out of me even today, but I've largely shut up about it 
> since Walter hasn't wanted to change it even though he seems to be the only 
> one who doesn't feel it's a bad idea (and it's not like it causes practical 
> problems when actually using the language...although I'm sure it must be a 
> big WTF for new and prospective D users).

Recently D2 has introduced the name "inout", that doesn't seem very linked to its semantic purpose. I think "auto_const",  "auto const" or "autoconst" are better.
The recently introduced "auto ref" is clear, but I think "auto_ref" or "autoref"are better still.

Bye,
bearophile



More information about the Digitalmars-d mailing list