Please stop polluting D 2.0 with C/C++ programmer assumptions.
Walter Bright
newshound1 at digitalmars.com
Fri Nov 30 03:01:55 PST 2007
Jan Claeys wrote:
> Op Thu, 29 Nov 2007 12:34:01 -0800, schreef Walter Bright:
>
>> 3) Half of D programmers come from C++. Similarities between the two
>> make for much quicker adaption to D.
>
> But it also means that more confusion is likely to happen about those
> things that are slightly-different-but-almost-the-same...
Which is why I avoid making changes that cause silent crashing
differences in behavior. Changes that result in compile errors if used
in a C++ manner are ok.
For example:
float f = 1/2;
If I did as suggested and make this the same as (float f = 0.5;), I
would silently break code that a C++ programmer may naturally write.
More information about the Digitalmars-d
mailing list