(non)nullable types

Brian digitalmars at brianguertin.com
Mon Feb 9 10:20:56 PST 2009


On Mon, 09 Feb 2009 04:19:55 +0000, Brian wrote:

> On Mon, 09 Feb 2009 04:25:55 +0300, Denis Koroskin wrote:
> 
>> So, let's ask the community: Would you like to see nullable types in D?
>> 
>> http://www.micropoll.com/akira/mpview/539369-138652 (please, don't
>> abuse by voting multiple time)
>> 
>> Explain your reasoning in newsgroups. Thank you.
> 
> i vote yes, i would absolutely love non-nullable types. in some cases i
> even use dummy objects to avoid null checks.

well, at the very least id like to see a (optional) warning/error for 
uninitialized pointers. This way I can be certain there are absolutely 
zero null pointers unless the null keyword itself is used. A quick search 
for 'null' would be guaranteed to show all possibly null variables. I 
know I'm not the first to wish for such. (Does a warning exist yet that I 
don't know about?)



More information about the Digitalmars-d mailing list