3 ms·
> 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
by aw1621107 11mo 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.