Non-null objects, the Null Object pattern, and T.init

Jacob Carlborg doob at me.com
Fri Jan 17 12:21:36 PST 2014


On 2014-01-17 16:05, Michel Fortin wrote:

> This is basically what everyone would wish for a not-null type to do.
> The syntax is clean and the control flow forces you to check for null
> before use. Misuses result in a compile-time error.

Yes, exactly. But the issue is that the compiler needs to be modified 
for this.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list