enigmatic hardcover on Nostr: Can anyone tell me why #rust #rustlang '.unwrap()' is bad? I understand "because it ...
Can anyone tell me why #rust #rustlang '.unwrap()' is bad? I understand "because it panics" but that's too superficial an answer. AFAICT, every occurrence is by choice of dev. So either it's a bug by dev, or mistake by user. So does '.unwrap()' get crap only bc ppl don't understand the use cases?
Published at
2024-07-02 09:34:04Event JSON
{
"id": "24e80ccfc0320a258e45eeb0c2634fd77e18e9db667fa542d3364856031b58fb",
"pubkey": "85d66f61ea7857db2a7216cea6f1004db9b73cd6b7f73201c079b8761ce1b87e",
"created_at": 1719912844,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"rustlang"
],
[
"proxy",
"https://mastodon.social/users/cobratbq/statuses/112716208148789321",
"activitypub"
]
],
"content": "Can anyone tell me why #rust #rustlang '.unwrap()' is bad? I understand \"because it panics\" but that's too superficial an answer. AFAICT, every occurrence is by choice of dev. So either it's a bug by dev, or mistake by user. So does '.unwrap()' get crap only bc ppl don't understand the use cases?",
"sig": "da65bdaab09e4cc46a60287ddf1da5bb4556a6be1f4bac0eafa1e4d312dd8276ca92b7deca23ee2b54c321c99dedcd27e220b47ed1211561fffe103fd2019ffe"
}