What\'s a nicer way to do the following, that doesn\'t call f() twice?
$x = f() ? f() : \'default\';
$x = ($result = foo()) ? $result : 'default';
test