Fixing C's Biggest Mistake

cc cc at nevernet.com
Sat Dec 31 06:04:25 UTC 2022


On Friday, 30 December 2022 at 02:03:39 UTC, Walter Bright wrote:
> NaNs are another excellent tool. They enable, for example, 
> dealing with a data set that may have unknown values in it from 
> bad sensors. Replacing that missing data with "0.0" is a very 
> bad idea.

How many D programmers acquire data from sensors that require 
such default language-integrated fault detection?
Versus how many D programmers would be well benefited from having 
floating point types treated like other numeric types, and 
sensibly default initialize to a usable 0 value?
Why is one group determined to be the one that needs its use case 
catered to, and not the other?


More information about the Digitalmars-d mailing list