D - Unsafe and doomed

Walter Bright newshound2 at digitalmars.com
Sat Jan 4 14:36:38 PST 2014


On 1/4/2014 2:24 PM, Timon Gehr wrote:
> On 01/04/2014 09:16 PM, Walter Bright wrote:
>>
>> Non-NULL is really only a particular case of having a type with a
>> constrained set of values. It isn't all that special.
>
> If you allow a crude analogy: Constraining a nullable pointer to be not null is
> like sending an invitation to your birthday party to all your friends and also
> Chuck, including a notice that Chuck cannot come. You are defending this
> practise based on the observation that some birthday parties have a required
> dress code.

No, I am not defending it. I am pointing out that there's excessive emphasis on 
just one hole in that cheesegrater.


More information about the Digitalmars-d mailing list