Description
common code often has constructs along the lines of:
String r = ((v != null) ? v : "default");
wouldnt this be better handled by a simple operator ?
groovy has "?:" (http://www.groovy-lang.org/operators.html#_elvis_operator)
like:
def r = (v ?: 'default');
and php 7 now has '??' (http://php.net/manual/en/migration70.new-features.php#migration70.new-features.null-coalesce-op)
like:
$r = ($v ?? 'default');