Hacker News new | ask | show | jobs
by xwolfi 200 days ago
Why did they name the crash() function "unwrap()" ? Feels weird to me ...
1 comments

> 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.