Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
user249
· 4y ago · 0 comments
When I was learning Rust, unwrap felt like cheating
Comments
[–]
grumpyprole
4y ago
It is! :) Perhaps the name could have made it more obvious: e.g. "get_or_fail"
[–]
scotty79
4y ago
It could be named .ordie() like php idiom from olden times.
[–]
yakubin
4y 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.