Re:Ruby gaining a safe navigation operator: '.?'
by Udo on Monday October 26, 2015 @08:32AM
(#10450921)
I'm looking forward to this in PHP7. My current workaround, which exists for the same reason as the coalesce operator (https://wiki.php.net/rfc/isset_ternary) is a custom function:
which will simply return the first parameter that has a non-null, non-empty-string value.
[ Parent
| on HN ]
There are no comments on this comment yet.