Templates: generic "return null;"

bearophile bearophileHUGS at lycos.com
Mon Feb 3 06:10:34 PST 2014


Dicebot:

> If you need cheap and simple way to figure out that attribute 
> was missing, change API to return value by out parameter and 
> turn normal return value into boolean success flag.

It's probably better to start using Nullable.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list