Open question: what code pattern you use usually for null safety problem

Imperatorn johan_forsberg_86 at hotmail.com
Fri Jan 15 14:32:13 UTC 2021


On Friday, 15 January 2021 at 14:25:09 UTC, Steven Schveighoffer 
wrote:
> On 1/15/21 9:19 AM, Steven Schveighoffer wrote:
>
>> Something similar to BlackHole or WhiteHole. Essentially 
>> there's a default action for null for all 
>> types/fields/methods, and everything else is passed through.
>
> And now reading the other thread about this above, it looks 
> like this type is already written:
>
> https://code.dlang.org/packages/optional
>
> I'd say use that.
>
> -Steve

That could be useful actually


More information about the Digitalmars-d-learn mailing list