Remus

Namespace rswhite4 at googlemail.com
Wed Oct 10 09:47:28 PDT 2012


On Wednesday, 10 October 2012 at 13:14:22 UTC, Jacob Carlborg 
wrote:
> On 2012-10-10 09:10, Namespace wrote:
>
>> You mean:
>> [code]
>> Foo obj;
>> if (obj is null) {
>>     obj = otherObj.get();
>> }
>> [/code]
>> ?
>>
>> Interesting point. Until now this isn't supported but I will 
>> think about
>> it.
>
> Exactly, most language supporting the elvis operator supports 
> this form as well, both Ruby and CoffeeScript do.

The evlis operator is the next i will implement.
So I will consider if something like this is necessary. :)


More information about the Digitalmars-d-announce mailing list