User avatar
the thing neobot_flag_trans @thing@thegayagenda.fans
2d
rusteceans, i have a question
why is
.unwrap()-ing an Err value like. the most common panic reason ever?
:pride_heart@gaysex.cloud:1
4
1
1
1
User avatar
sodiboo pride_heart @sodiboo@gaysex.cloud
3h
@thing because it's easy and error handling is annoying.

at least, we can grep for
.unwrap() to fix all the places we're lazy. unlike some other languages where you need to Study it to find out where exceptions occur and are unhandled.

not that we ever do grep for
.unwrap(). but y'know. we can.
2
0
1
0
User avatar
pancakes nonbinary_cat @pancakes@meow.company
3h
@sodiboo @thing yeah exceptions are quite annoying sometimes
i very much prefer rust's Result type and zig's error unions
:neobot_heart_cyan@thegayagenda.fans:1
0
1
2
1