|
Ok, I've come to the conclusion that we're never going to reach a
consensus, so I'll lay a card on the table. I never really liked
the change that makes implicit narrowing conversions illegal (or
most of the other increased strictness that D has acquired recently)
in the first place. This and many other things used to be a warning
and to me that's exactly what they should be. Warnings are for
things that are unambiguous, have a decent probability of not being
bugs, but also have a decent probability of being bugs. Errors are
for things that are ambiguous or are almost certainly bugs, or for
when you explicitly asked for extra checking, for example by using
const. You might want the compiler to complain about narrowing
conversions when you're trying to clean up the code, hunt for latent
bugs that would only show up in production, and get to the "make it
right" stage, or trying to figure out why it doesn't work. Most
narrowing conversions, though, are innocent and it's really annoying
for the compiler to act like they need to be addressed right now,
when you're still in the "make it work" stage or just writing some
quick and dirty piece of code that only needs to run once. On 2/17/2011 8:53 PM, Jonathan M Davis wrote:
|
_______________________________________________ phobos mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/phobos
