Why does nobody seem to think that `null` is a serious problem in D?

aliak something at something.com
Tue Nov 20 11:11:43 UTC 2018


On Monday, 19 November 2018 at 21:39:22 UTC, Adam D. Ruppe wrote:
> On Monday, 19 November 2018 at 21:23:31 UTC, Jordi Gutiérrez 
> Hermoso wrote:
>> What's the reasoning for allowing this?
>
> The mistake is immediately obvious when you run the program, so 
> I just don't see it as a big deal. You lose a matter of 
> seconds, realize the mistake, and fix it.

This only applies to little scripts and unittests maybe.

Not when you're writing any kind of relatively larger application 
that involves being run for longer or if there's more possible 
permutations of your state variables.




More information about the Digitalmars-d-learn mailing list