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

welkam wwwelkam at gmail.com
Tue Nov 20 13:27:28 UTC 2018


On Monday, 19 November 2018 at 21:23:31 UTC, Jordi Gutiérrez 
Hermoso wrote:
> Why does nobody seem to think that `null` is a serious problem 
> in D?

Because the more you learn about D the less you want to use 
classes. I view class as compatibility feature when you want to 
port Java code to D. For regular code just use structs. For 
inheritance you could use alias, for polymorphism - templates 
etc. If you want to write OOP code you dont have to always start 
with keyword class.

And since you dont use classes you dont view null as a high 
priority problem.


More information about the Digitalmars-d-learn mailing list