On 2012-10-09 21:10, Namespace wrote:

My next version will contain the elvis operator:
[code]
Foo obj = otherObj.get() ?: null;
if otherObj.get() is _not_ null, it will assign to obj, otherwise obj
will be assigned with null.
[/code]

Will it support this syntax:

Foo obj;
obj ?= otherObj.get();

Will only assign to "obj" if it's null.

--
/Jacob Carlborg

Reply via email to