Adding the ?. null verification

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 22 08:29:16 PDT 2014


On 6/22/14, 7:26 AM, H. S. Teoh via Digitalmars-d wrote:
> On Sun, Jun 22, 2014 at 01:15:46AM -0700, Andrei Alexandrescu via Digitalmars-d wrote:
>> On 6/21/14, 3:38 PM, H. S. Teoh via Digitalmars-d wrote:
>>> On Sat, Jun 21, 2014 at 03:26:45PM -0700, Andrei Alexandrescu via Digitalmars-d wrote:
>>>> 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.
>>> [...]
>>>
>>> What's your suggestion?
>>
>> That we add "or" to std and find a name for safeDeref that doesn't use
>> the word "safe" in a confusing manner. -- Andrei
>
> Yes I got that. I was asking what you thought was a better name for
> safeDeref.

I'd gotten your point too, and I jokingly answered in the subtext that I 
don't have a better name. -- Andrei



More information about the Digitalmars-d mailing list