An idea (Re: Implicit enum conversions are a stupid PITA)
Walter Bright
newshound1 at digitalmars.com
Thu Mar 25 02:46:51 PDT 2010
Don wrote:
> This would catch some bugs, without (I think) causing much pain for
> valid code. At the very least, this is something I'd want in a lint
> tool. (But note that it wouldn't fix the issue in the original post).
Such rules are interesting, but I worry that they are both too clever and too
obtuse. Having a lot of such rules may make using D very frustrating because
you'll never know when you'll get hit by one of them.
I'd rather have a simpler, more orthogonal, and easier to remember rules that
may have a downside here and there rather than a complex web of seemingly
arbitrary ones.
More information about the Digitalmars-d
mailing list