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. :)

Reply via email to