|
|
|
|
|
by nulld3v
1508 days ago
|
|
The assertion remains true though. Unwrap should only be used if you are prototyping or you are 100% sure it will never actually panic. It's just like the IndexOutOfBounds exception in Java. Many functions can theoretically throw it, but most libraries and programs do not catch it because usually if it is thrown it means that something happened that the programmer did not expect and therefore the program should crash. |
|