Adding the ?. null verification

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 21 15:26:45 PDT 2014


On 6/19/14, 1:29 PM, Etienne wrote:
> writeln(currAssignment.safeDeref.typeInfo.ident.or("meh"));

"or" is really nice and terse. I think we should add that to std. 
safeDeref isn't the best choice of name.

Andrei



More information about the Digitalmars-d mailing list