(non)nullable types
Jason House
jason.james.house at gmail.com
Sun Feb 8 21:14:44 PST 2009
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.
Please, please give us non-nullable types! Use of a non-nullable reference type before initialization could be an error just like it is in C#. I hate segfaults and this would at least allow safer code to be written. Non-nullable types should be implicitly castable to nullable types when making function calls that don't support them.
More information about the Digitalmars-d
mailing list