#rustlang hot take: We should rename .unwrap() to .or_panic(). (And .expect() to .or_panic_with().) "Unwrap" is a terrible name for the panicking function, especially since we also have things like .unwrap_or() and .unwrap_or_default() which never panic.
Mara
@mara@hachyderm.io
Posts
-
#rustlang hot take: We should rename -
Happy 10 year anniversary to this tweet!Happy 10 year anniversary to this tweet! Has memory safety in C++ been solved yet?