2 ms·
Why did they name the crash() function "unwrap()" ? Feels weird to me ...
by xwolfi 1y ago
Why did they name the crash() function "unwrap()" ? Feels weird to me ...
- aw1621107 1y 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.