[article] Language Design Deal Breakers

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed May 29 07:47:03 PDT 2013


On 5/29/13 1:56 AM, Diggory wrote:
> On Wednesday, 29 May 2013 at 05:35:14 UTC, Walter Bright wrote:
>> On 5/28/2013 9:55 PM, Diggory wrote:
>>> As a last resort there should be a runtime check available such as
>>> assertNotNull(T) which does the conversion.
>>
>> The idea is to put the check on assignments to NotNull, not on usage
>> of it.
>
> I know, that's what my suggestion was for.
>
> assertNotNull(T) would return a NotNull!T given a T (probably should
> have explained that)

assume?

Andrei



More information about the Digitalmars-d mailing list