top | item 46029294

(no title)

xwolfi | 3 months ago

Why did they name the crash() function "unwrap()" ? Feels weird to me ...

discuss

order

aw1621107|3 months ago

> Why did they name the crash() function "unwrap()" ?

Because unwrap() is not guaranteed to cause a crash? panic!() is there if you actually want to guarantee a panic.