The case for NaN
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Jul 6 12:38:05 UTC 2026
On 07/07/2026 12:31 AM, Lars Johansson wrote:
> On Sunday, 5 July 2026 at 19:05:12 UTC, Walter Bright wrote:
>> On 7/5/2026 1:26 AM, Alexandru Ermicioi wrote:
>>> Maybe D should drop default initialization completely?
>>
>> That's how C works. It's a bug fountain.
>
> A humble question. Is default initialization relevant with modern
> editors and AI?
How much of the training data that LLM's learn from do you think have
not been properly initialized?
A large percentage of the C test files for ImportC that dates back over
40 years, is not initialized. There are reads on unitialized variables
EVERYWHERE.
As for modern editors, the best case scenario is that they run a static
analyzer to catch such cases. So for D, don't expect that to happen.
Not even Walter uses an IDE. He has his own.
More information about the Digitalmars-d
mailing list