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

Steven Schveighoffer schveiguy at gmail.com
Fri Jan 15 14:25:09 UTC 2021


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


More information about the Digitalmars-d-learn mailing list