Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
grumpyprole
on July 15, 2022
|
parent
|
context
|
favorite
| on:
Rust should not have provided `unwrap`
It is! :) Perhaps the name could have made it more obvious: e.g. "get_or_fail"
scotty79
on July 15, 2022
[–]
It could be named .ordie() like php idiom from olden times.
GrumpySloth
on July 15, 2022
|
parent
[–]
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.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: