Remus

Jacob Carlborg doob at me.com
Wed Oct 10 05:50:18 PDT 2012


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.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list