Which D features to emphasize for academic review article

Walter Bright newshound2 at digitalmars.com
Sat Aug 11 13:48:50 PDT 2012


On 8/11/2012 12:33 PM, F i L wrote:
> In D we have a bit of a conceptual double standard within the
> number community. I have to remember these rules when I'm creating something,
> not just when I'm debugging it. As often as D may have caught a construction
> mistake specifically related to floats in my code, 10x more so it's produced
> NaN's where I intended a number, because I forgot about the double standard when
> adding a field or creating a variable.

I'd rather have a 100 easy to find bugs than 1 unnoticed one that went out in 
the field.


> A C++ guy might not think twice about this because he's used to having to
> default values all the time (IDK, I'm not that guy),

Only if a default constructor is defined for the type, which it often is not, 
and you'll get garbage for a default initialization.




More information about the Digitalmars-d mailing list