Y
Hacker News
new
|
ask
|
show
|
jobs
by
grumpyprole
1431 days ago
It is! :) Perhaps the name could have made it more obvious: e.g. "get_or_fail"
1 comments
scotty79
1431 days ago
It could be named .ordie() like php idiom from olden times.
link
yakubin
1431 days ago
I associate it more with Perl. A quick search reveals Perl to be older than PHP by 7 years, so I'd guess it's a Perl idiom borrowed by PHP.
link