elvis pattern refinement (was Syntax patterns)
rssh at gradsoft.com.ua
Fri Apr 24 10:54:35 PDT 2009
> a!=null ? a.method() : b
> a?.method() ?: b
> however, that would be semantically different in meaning (as now b is
> returned if method() returns null, which wasn't originally the case)
> Thus, this construct is invalid for Elvis, Null-safe and the
> combination of the two.
Ok, so will exclude one.
a!=null ? a.method() : null
must be counted or not ?
(i.e. it's clean safe method call)
More information about the coin-dev